Bug 543959 - Weaken test_bug486741.html not to test if document.open() creates a root element. r=bzbarsky.

This commit is contained in:
Henri Sivonen 2010-02-03 17:39:20 +02:00
Родитель 64cdf72d92
Коммит 8ccc7e04ef
1 изменённых файлов: 3 добавлений и 6 удалений

Просмотреть файл

@ -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();
});