Changeset 19231 in josm
- Timestamp:
- 2024-10-03T14:32:10+02:00 (2 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/tools/ShortcutTest.java
r18853 r19231 21 21 void testMakeTooltip() { 22 22 final String tooltip = Shortcut.makeTooltip("Foo Bar", KeyStroke.getKeyStroke(KeyEvent.VK_J, InputEvent.SHIFT_DOWN_MASK)); 23 if (Platform.determinePlatform() == Platform.OSX) { 24 assertEquals("Foo Bar (⇧+J)", tooltip); 23 final String shift = Platform.determinePlatform() == Platform.OSX ? "⇧" : "Shift"; 24 if (PlatformManager.getPlatform().isHtmlSupportedInMenuTooltips()) { 25 assertEquals("<html>Foo Bar <font size='-2'>(" + shift + "+J)</font> </html>", tooltip); 25 26 } else { 26 assertEquals(" <html>Foo Bar <font size='-2'>(Shift+J)</font> </html>", tooltip);27 assertEquals("Foo Bar (" + shift + "+J)", tooltip); 27 28 } 28 29 }
Note:
See TracChangeset
for help on using the changeset viewer.