blob: fa6c698f25fdf5e806ae31f6c9ca9dde4ec440e5 [file] [log] [blame]
<p>
This page tests whether declaring a variable named "name" changes the window's
name in the DOM. If the test passes, you'll see a PASS message below.
</p>
<pre>FAIL</pre>
<script>
function log(result)
{
document.querySelector("pre").textContent = result;
}
if (window.testRunner) {
testRunner.dumpAsText();
}
var name = "test";
var w = window.open("javascript:void 0", "test");
if (w === window)
log("PASS");
else
log("FAIL");
</script>