Changeset 17180 in josm for trunk/test/unit/org
- Timestamp:
- 2020-10-12T22:25:08+02:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/tools/ShortcutTest.java
r14689 r17180 31 31 @Test 32 32 public void testMakeTooltip() { 33 assertEquals("<html>Foo Bar <font size='-2'>(Shift+J)</font> </html>", 34 Shortcut.makeTooltip("Foo Bar", KeyStroke.getKeyStroke(KeyEvent.VK_J, InputEvent.SHIFT_DOWN_MASK))); 33 final String tooltip = Shortcut.makeTooltip("Foo Bar", KeyStroke.getKeyStroke(KeyEvent.VK_J, InputEvent.SHIFT_DOWN_MASK)); 34 if (Platform.determinePlatform() == Platform.OSX) { 35 assertEquals("Foo Bar (⇧+J)", tooltip); 36 } else { 37 assertEquals("<html>Foo Bar <font size='-2'>(Shift+J)</font> </html>", tooltip); 38 } 35 39 } 36 40
Note:
See TracChangeset
for help on using the changeset viewer.