Skip to content

Commit

Permalink
fix svg test on ie. Fix #33
Browse files Browse the repository at this point in the history
  • Loading branch information
clmath committed Nov 5, 2015
1 parent 2e61f64 commit 876aee8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/unit/svg.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,8 @@ define([
var svgs = spriteContainer.querySelectorAll("symbol");
assert.strictEqual(svgs.length, 1, "Icon with empty viewBox was loaded");
var viewBoxAttr = svgs[0].getAttribute("viewBox");
assert.strictEqual(viewBoxAttr, "", "Icon with empty viewBox gets an empty viewBox attribute in the sprite");
// use notOk because IE insist to set viewBoxAttr to null while other browsers return ""
assert.notOk(viewBoxAttr, "Icon with empty viewBox gets an empty viewBox attribute in the sprite");
}));
},
"Loading an icon with a lowercase viewbox": function () {
Expand Down

0 comments on commit 876aee8

Please sign in to comment.