From 5c0ebc7a8f07f10c86de8464fddb0ecb628474c5 Mon Sep 17 00:00:00 2001 From: Boris Zbarsky Date: Mon, 13 Apr 2015 19:36:44 -0400 Subject: [PATCH] Bug 1153516. Stop using loose is() comparisons in test_dom_xrays.html. r=bholley --- dom/bindings/test/test_dom_xrays.html | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/dom/bindings/test/test_dom_xrays.html b/dom/bindings/test/test_dom_xrays.html index 96704d2a56e..4d82745ed03 100644 --- a/dom/bindings/test/test_dom_xrays.html +++ b/dom/bindings/test/test_dom_xrays.html @@ -39,9 +39,9 @@ function checkXrayProperty(obj, name, values) var pd = Object.getOwnPropertyDescriptor(obj, name); ok(pd, "getOwnPropertyDescriptor should see \"" + name + "\" through Xrays"); if (pd && pd.get) { - is(pd.get.call(instance), value, "Should get the right value for \"" + name + "\" through Xrays"); + ise(pd.get.call(instance), value, "Should get the right value for \"" + name + "\" through Xrays"); } else { - is(obj[name], value, "Should get the right value for \"" + name + "\" through Xrays"); + ise(obj[name], value, "Should get the right value for \"" + name + "\" through Xrays"); } if (pd && pd.enumerable) { ok(Object.keys(obj).indexOf("" + name) > -1, "Enumerating the Xray should return \"" + name + "\""); @@ -104,7 +104,9 @@ function test() // HTMLDocument // Unforgeable properties live on the instance. - checkXrayProperty(doc, "location", [ document.getElementById("t").src ]); + checkXrayProperty(doc, "location", [ win.location ]); + ise(String(win.location), document.getElementById("t").src, + "Should have the right stringification"); // HTMLHtmlElement var elem = doc.documentElement;