Changeset 14285 in josm


Ignore:
Timestamp:
2018-09-30T21:09:10+02:00 (2 months ago)
Author:
Don-vip
Message:

fix unit tests

Location:
trunk/test/unit/org/openstreetmap/josm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/actions/upload/FixDataHookTest.java

    r14281 r14285  
    4242    public void testCheckUpload() {
    4343        // Empty data set
    44         UndoRedoHandler.getInstance().getUndoCommands().clear();
     44        UndoRedoHandler.getInstance().clean();
    4545        new FixDataHook().checkUpload(new APIDataSet());
    4646        assertTrue(UndoRedoHandler.getInstance().getUndoCommands().isEmpty());
  • trunk/test/unit/org/openstreetmap/josm/tools/KeyboardUtilsTest.java

    r14282 r14285  
    6161        char deadCaron2 = 0x2C7;
    6262        testgetCharactersForKeyE00("ar", 'ذ', '>', '`', deadGrave, deadGrave2);
    63         testgetCharactersForKeyE00("fr_FR", '²', '$', '`', deadGrave, deadGrave2);
     63        if (PlatformManager.isPlatformUnixoid()) {
     64            testgetCharactersForKeyE00("fr_FR", '²', '$', 'œ', '`', deadGrave, deadGrave2);
     65        } else {
     66            testgetCharactersForKeyE00("fr_FR", '²', '$', '`', deadGrave, deadGrave2);
     67        }
    6468        testgetCharactersForKeyE00("fr_CA", '#', '$', '/', '`', deadGrave, deadGrave2);
    6569        testgetCharactersForKeyE00("sq", '\\', '`', deadGrave, deadGrave2);
Note: See TracChangeset for help on using the changeset viewer.