зеркало из https://github.com/mozilla/pjs.git
Bug 543959 - Weaken test_bug486741.html not to test if document.open() creates a root element. r=bzbarsky.
This commit is contained in:
Родитель
64cdf72d92
Коммит
8ccc7e04ef
|
@ -26,16 +26,13 @@ addLoadEvent(function() {
|
|||
is(root.tagName, "HTML", "Unexpected root");
|
||||
|
||||
d.open();
|
||||
var newRoot = d.documentElement;
|
||||
is(newRoot.tagName, "HTML", "Unexpected new root");
|
||||
isnot(newRoot, root, "Shouldn't be the same node");
|
||||
isnot(d.documentElement, root, "Shouldn't have the old root element");
|
||||
|
||||
d.write("Test");
|
||||
d.close();
|
||||
|
||||
var newNewRoot = d.documentElement;
|
||||
is(newNewRoot.tagName, "HTML", "Unexpected new root after write");
|
||||
is(newNewRoot, newNewRoot, "write+close shouldn't change the root");
|
||||
isnot(d.documentElement, root, "Still shouldn't have the old root element");
|
||||
is(d.documentElement.tagName, "HTML", "Unexpected new root after write");
|
||||
|
||||
SimpleTest.finish();
|
||||
});
|
||||
|
|
Загрузка…
Ссылка в новой задаче