Test for Bug 419527

Foo var win = XPCNativeWrapper.unwrap(window); var span = document.getAnonymousNodes(this)[0]; win.ok(span.localName == "span", "Wrong anon node!"); var range = document.createRange(); range.selectNode(span.firstChild); win.ok(range.startContainer == span, "Wrong start container!"); win.ok(range.endContainer == span, "Wrong end container!"); var newSubTree = XPCNativeWrapper(win.newSubTree); newSubTree.appendChild(this); range.setStart(newSubTree.firstChild, 0); win.ok(range.startContainer == newSubTree.firstChild, "Range should have been collapsed to newSubTree.firstChild!"); win.ok(range.endContainer == newSubTree.firstChild, "Range should have been collapsed to newSubTree.firstChild!"); //XXX This should just call SimpleTest.finish(), bugs 478528, 499735. setTimeout(win.finish, 0);
Mozilla Bug 419527