Changeset 31488 in osm


Ignore:
Timestamp:
2015-08-12T12:39:24+02:00 (9 years ago)
Author:
nokutu
Message:

Fix tests

Location:
applications/editors/josm/plugins/mapillary
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/MapillaryLayer.java

    r31487 r31488  
    132132    }
    133133    createHatchTexture();
    134 
    135     MapillaryMainDialog.getInstance()
    136         .getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW)
    137         .put(KeyStroke.getKeyStroke("DELETE"), "MapillaryDel");
    138     MapillaryMainDialog.getInstance().getActionMap()
    139         .put("MapillaryDel", new DeleteImageAction());
     134    if (Main.main != null) {
     135      MapillaryMainDialog.getInstance()
     136          .getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW)
     137          .put(KeyStroke.getKeyStroke("DELETE"), "MapillaryDel");
     138      MapillaryMainDialog.getInstance().getActionMap()
     139          .put("MapillaryDel", new DeleteImageAction());
     140    }
    140141
    141142    if (Main.main != null)
  • applications/editors/josm/plugins/mapillary/test/unit/org/openstreetmap/josm/plugins/mapillary/oauth/OAuthPortListenerTest.java

    r31486 r31488  
    2828    t.start();
    2929    try {
     30      synchronized (this) {
     31        this.wait(500);
     32      }
     33    } catch (InterruptedException e1) {
     34    }
     35    try {
    3036      URL url = new URL("http://localhost:8763?access_token=access_token");
    3137      HttpURLConnection con = (HttpURLConnection) url.openConnection();
Note: See TracChangeset for help on using the changeset viewer.