Move text to single group with subgroups for halo,label,debug

This commit is contained in:
Bryan Housel
2017-12-14 12:32:28 -05:00
parent 24baa5390e
commit bfaf17538e
4 changed files with 72 additions and 66 deletions
+2 -3
View File
@@ -8,12 +8,11 @@ describe('iD.svgOsm', function () {
it('creates default osm layers', function () {
container.call(iD.svgOsm());
var nodes = container.selectAll('.layer-osm').nodes();
expect(nodes.length).to.eql(5);
expect(nodes.length).to.eql(4);
expect(d3.select(nodes[0]).classed('layer-areas')).to.be.true;
expect(d3.select(nodes[1]).classed('layer-lines')).to.be.true;
expect(d3.select(nodes[2]).classed('layer-hit')).to.be.true;
expect(d3.select(nodes[3]).classed('layer-halo')).to.be.true;
expect(d3.select(nodes[4]).classed('layer-label')).to.be.true;
expect(d3.select(nodes[3]).classed('layer-labels')).to.be.true;
});
});