Changeset 2448 in josm for trunk/test/functional


Ignore:
Timestamp:
2009-11-14T17:59:10+01:00 (10 years ago)
Author:
Gubaer
Message:

fixed #3352: History doesn't get invalidated on upload?
fixed #3912: Extend history dialog to contain the currently modified version
new: zoom to node in list of nodes in history dialog (popup menu)
new: load history of node from node list in history dialog (popup menu or double click)
fixed: close all history dialogs when the number of layers drop to 0
fixed: implemented equals() and hashCode() on SimplePrimitiveId
fixed: history features now usePrimitiveId instead of long.

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

Legend:

Unmodified
Added
Removed
  • trunk/test/functional/org/openstreetmap/josm/gui/history/HistoryBrowserTest.java

    r1813 r2448  
    1616import org.openstreetmap.josm.Main;
    1717import org.openstreetmap.josm.data.osm.OsmPrimitiveType;
     18import org.openstreetmap.josm.data.osm.SimplePrimitiveId;
    1819import org.openstreetmap.josm.data.osm.history.History;
    1920import org.openstreetmap.josm.data.osm.history.HistoryDataSet;
     
    7879            return;
    7980        }
    80         History h = ds.getHistory(id);
     81        History h = ds.getHistory(new SimplePrimitiveId(id, type));
    8182        browser.populate(h);
    8283    }
  • trunk/test/functional/org/openstreetmap/josm/io/OsmServerHistoryReaderTest.java

    r1813 r2448  
    2222        OsmServerHistoryReader reader = new OsmServerHistoryReader(OsmPrimitiveType.NODE,266187);
    2323        HistoryDataSet ds = reader.parseHistory(NullProgressMonitor.INSTANCE);
    24         History h = ds.getHistory(266187);
     24        History h = ds.getHistory(266187, OsmPrimitiveType.NODE);
    2525        System.out.println("num versions: " + h.getNumVersions());
    2626    }
     
    3030        OsmServerHistoryReader reader = new OsmServerHistoryReader(OsmPrimitiveType.WAY,32916);
    3131        HistoryDataSet ds = reader.parseHistory(NullProgressMonitor.INSTANCE);
    32         History h = ds.getHistory(32916);
     32        History h = ds.getHistory(32916, OsmPrimitiveType.WAY);
    3333        System.out.println("num versions: " + h.getNumVersions());
    3434    }
     
    3838        OsmServerHistoryReader reader = new OsmServerHistoryReader(OsmPrimitiveType.RELATION,49);
    3939        HistoryDataSet ds = reader.parseHistory(NullProgressMonitor.INSTANCE);
    40         History h = ds.getHistory(49);
     40        History h = ds.getHistory(49, OsmPrimitiveType.RELATION);
    4141        System.out.println("num versions: " + h.getNumVersions());
    4242    }
Note: See TracChangeset for help on using the changeset viewer.