Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / Window / window-property-shadowing-name.html
blobfa6c698f25fdf5e806ae31f6c9ca9dde4ec440e5
1 <p>
2 This page tests whether declaring a variable named "name" changes the window's
3 name in the DOM. If the test passes, you'll see a PASS message below.
4 </p>
6 <pre>FAIL</pre>
8 <script>
10 function log(result)
12 document.querySelector("pre").textContent = result;
15 if (window.testRunner) {
16 testRunner.dumpAsText();
19 var name = "test";
20 var w = window.open("javascript:void 0", "test");
21 if (w === window)
22 log("PASS");
23 else
24 log("FAIL");
26 </script>