From 876aee8c08e228a45ddb807541f68da96dd10342 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Mathieu?= Date: Thu, 5 Nov 2015 15:07:14 +0100 Subject: [PATCH] fix svg test on ie. Fix #33 --- tests/unit/svg.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/unit/svg.js b/tests/unit/svg.js index ffc8f51..d5a33df 100644 --- a/tests/unit/svg.js +++ b/tests/unit/svg.js @@ -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 () {