Skip to content

Commit 876aee8

Browse files
committed
fix svg test on ie. Fix #33
1 parent 2e61f64 commit 876aee8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/unit/svg.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,8 @@ define([
148148
var svgs = spriteContainer.querySelectorAll("symbol");
149149
assert.strictEqual(svgs.length, 1, "Icon with empty viewBox was loaded");
150150
var viewBoxAttr = svgs[0].getAttribute("viewBox");
151-
assert.strictEqual(viewBoxAttr, "", "Icon with empty viewBox gets an empty viewBox attribute in the sprite");
151+
// use notOk because IE insist to set viewBoxAttr to null while other browsers return ""
152+
assert.notOk(viewBoxAttr, "Icon with empty viewBox gets an empty viewBox attribute in the sprite");
152153
}));
153154
},
154155
"Loading an icon with a lowercase viewbox": function () {

0 commit comments

Comments
 (0)