mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-26 01:47:49 +02:00
Fix the rest of the icons (leave walkthrough graphics alone for now)
This commit is contained in:
@@ -11,11 +11,9 @@ describe("iD.svg.Icon", function () {
|
||||
expect(selection.select('use').attr('xlink:href')).to.eql('#icon-bug');
|
||||
});
|
||||
|
||||
it("creates a classed SVG icon", function () {
|
||||
selection.call(iD.svg.Icon('#icon-bug', 'icon-light'));
|
||||
expect(selection.select('svg')).to.be.classed('icon');
|
||||
expect(selection.select('use').attr('xlink:href')).to.eql('#icon-bug');
|
||||
expect(selection.select('use')).to.be.classed('icon-light');
|
||||
it("classes the 'svg' and 'use' elements", function () {
|
||||
selection.call(iD.svg.Icon('#icon-bug', 'svg-class', 'use-class'));
|
||||
expect(selection.select('svg')).to.be.classed('icon svg-class');
|
||||
expect(selection.select('use')).to.be.classed('use-class');
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user