--- a/dom/base/test/chrome/cpows_parent.xul+++ b/dom/base/test/chrome/cpows_parent.xul@@ -227,16 +227,22 @@ // See bug 1072980. if (test_state == "remote") { // This doesn't work because we intercept toString and QueryInterface specially // and don't cache the function pointer. // See bug 1140636. todo_is(savedElement.toString, savedElement.toString, "toString identity works"); todo_is(savedElement.QueryInterface, savedElement.QueryInterface, "toString identity works");+ is(Object.prototype.toString.call(savedElement), "[object HTMLDivElement]",+ "prove that this works (and doesn't leak)");++ is(Object.prototype.toString.call(savedElement), "[object HTMLDivElement]",+ "prove that this works twice (since we cache it and doesn't leak)");+ // This does work because we create a CPOW for isEqualNode that stays // alive as long as we have a reference to the first CPOW (so as long // as it's detectable). is(savedElement.isEqualNode, savedElement.isEqualNode, "webidl function identity works"); let walker = Components.classes["@mozilla.org/inspector/deep-tree-walker;1"] .createInstance(Components.interfaces.inIDeepTreeWalker); const SHOW_ELEMENT = Components.interfaces.nsIDOMNodeFilter.SHOW_ELEMENT;