4 if (window
.layoutTestController
) {
5 layoutTestController
.dumpAsText();
6 layoutTestController
.setCanOpenWindows();
7 layoutTestController
.waitUntilDone();
14 w
= window
.open("resources/opened-window.html");
16 w
.document
.myProp
= "2";
19 // Called from the opened window.
20 function concludeTest()
22 var c
= document
.getElementById('console');
23 c
.innerHTML
= "window retains early properties: " + ((w
.myProp
&& w
.myProp
=='1') ? "PASS" : "FAIL") + "<br>";
24 c
.innerHTML
+="document does not retain early properties: " + ((w
.document
.myProp
) ? "FAIL" : "PASS") + "<br>";
27 setTimeout(doneHandler
, 1);
28 function doneHandler() {
30 if (window
.layoutTestController
)
31 layoutTestController
.notifyDone();
35 setTimeout(doneHandler
, 1);
40 Test setting window properties right after window.open()
41 <div id='console'
>FAIL, test did not run
</div>