зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1140636 - Test CPOW function identity. r=billm
This commit is contained in:
Родитель
76dd5cd892
Коммит
e508afcd8a
|
@ -209,6 +209,16 @@
|
||||||
// Test to ensure that we don't pass CPOWs to C++-implemented interfaces.
|
// Test to ensure that we don't pass CPOWs to C++-implemented interfaces.
|
||||||
// See bug 1072980.
|
// See bug 1072980.
|
||||||
if (test_state == "remote") {
|
if (test_state == "remote") {
|
||||||
|
// This doesn't work because we intercept toString specially
|
||||||
|
// and don't cache the function pointer.
|
||||||
|
// See bug 1140636.
|
||||||
|
todo_is(savedElement.toString, savedElement.toString, "toString identity works");
|
||||||
|
|
||||||
|
// 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"]
|
let walker = Components.classes["@mozilla.org/inspector/deep-tree-walker;1"]
|
||||||
.createInstance(Components.interfaces.inIDeepTreeWalker);
|
.createInstance(Components.interfaces.inIDeepTreeWalker);
|
||||||
const SHOW_ELEMENT = Components.interfaces.nsIDOMNodeFilter.SHOW_ELEMENT;
|
const SHOW_ELEMENT = Components.interfaces.nsIDOMNodeFilter.SHOW_ELEMENT;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче