mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 17:23:02 +00:00
fix test case "does not delete tagged nodes" of iD.actions.Straighten
The nodes.sort() statement caused some trouble in older browsers such as (FF 20, Chromium 25). Also, the straighten action should conserve node order. Thus, the sorting made the test weaker than it had to be. This just removes the unnecessary sorting.
This commit is contained in:
@@ -24,7 +24,7 @@ describe("iD.actions.Straighten", function () {
|
||||
|
||||
graph = iD.actions.Straighten('-', projection)(graph);
|
||||
|
||||
expect(graph.entity('-').nodes.sort()).to.eql(['a', 'b', 'c']);
|
||||
expect(graph.entity('-').nodes).to.eql(['a', 'b', 'c']);
|
||||
});
|
||||
|
||||
it("does not delete nodes connected to other ways", function() {
|
||||
|
||||
Reference in New Issue
Block a user