Test for Bug 419527

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