4 function print(message
) {
5 var paragraph
= document
.createElement("p");
6 paragraph
.appendChild(document
.createTextNode(message
));
7 document
.getElementById("console").appendChild(paragraph
);
15 print("FAIL: element " + count
+ " in the window's prototype chain was not cleared");
17 print("PASS: element " + count
+ " in the window's prototype chain was cleared");
23 if (window
.testRunner
)
24 testRunner
.notifyDone();
28 <body onload=
"test();">
29 <p>This test checks to ensure that the window object is cleared during a navigation.
</p>
30 <p>If the test passes, you will see only PASS messages below.
</p>