4 <script src=
"../../../resources/js-test.js"></script>
7 description("window.closed should return true after window.close().");
9 window
.jsTestIsAsync
= true;
11 if (window
.testRunner
) {
12 testRunner
.dumpAsText();
13 testRunner
.setCanOpenWindows();
16 function processMessage(event
) {
17 if (event
.data
== "opened") {
19 shouldBeTrue("w.closed");
20 } else if (event
.data
== "closed") {
21 shouldBeTrue("w.closed");
26 w
= window
.open('../../../resources/window-postmessage-open-close.html');
27 window
.addEventListener("message", processMessage
, false);