Changeset 17180 in josm for trunk/test


Ignore:
Timestamp:
2020-10-12T22:25:08+02:00 (4 years ago)
Author:
simon04
Message:

see #19370 - Fix ShortcutTest on macOS

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/tools/ShortcutTest.java

    r14689 r17180  
    3131    @Test
    3232    public void testMakeTooltip() {
    33         assertEquals("<html>Foo Bar <font size='-2'>(Shift+J)</font>&nbsp;</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>&nbsp;</html>", tooltip);
     38        }
    3539    }
    3640
Note: See TracChangeset for help on using the changeset viewer.