mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 01:02:58 +00:00
Fix context.js and vertices.js tests
This commit is contained in:
@@ -59,7 +59,8 @@ describe('iD.Context', function() {
|
||||
collision: false,
|
||||
imagery: false,
|
||||
imperial: false,
|
||||
driveLeft: false
|
||||
driveLeft: false,
|
||||
target: false
|
||||
};
|
||||
|
||||
expect(context.debugFlags()).to.eql(flags);
|
||||
|
||||
@@ -24,8 +24,10 @@ describe('iD.svgVertices', function () {
|
||||
var way1 = iD.osmWay({nodes: [node.id], tags: {highway: 'residential'}});
|
||||
var way2 = iD.osmWay({nodes: [node.id], tags: {highway: 'residential'}});
|
||||
var graph = iD.coreGraph([node, way1, way2]);
|
||||
var filter = function() { return true; };
|
||||
var extent = iD.geoExtent([0, 0], [1, 1]);
|
||||
|
||||
surface.call(iD.svgVertices(projection, context), graph, [node]);
|
||||
surface.call(iD.svgVertices(projection, context), graph, [node], filter, extent);
|
||||
expect(surface.select('.vertex').classed('shared')).to.be.true;
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user