Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / loader / resources / window-clearing2.html
blob27ce52c314641f61eef5c43e15c8b63740fa3687
1 <html>
2 <head>
3 <script>
4 function print(message) {
5 var paragraph = document.createElement("p");
6 paragraph.appendChild(document.createTextNode(message));
7 document.getElementById("console").appendChild(paragraph);
10 function test() {
11 var count = 0;
12 var o = window;
13 do {
14 if (o.x)
15 print("FAIL: element " + count + " in the window's prototype chain was not cleared");
16 else
17 print("PASS: element " + count + " in the window's prototype chain was cleared");
19 ++count;
20 o = o.__proto__;
21 } while(o);
23 if (window.testRunner)
24 testRunner.notifyDone();
26 </script>
27 </head>
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>
31 <hr>
32 <div id='console'/>
33 </body>
34 </html>