27 lines
462 B
HTML
27 lines
462 B
HTML
<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>
|