3 <script src=
"../../resources/js-test.js"></script>
6 <a id=test
href=
"javascript:popup()">test
</a>
7 <div id=
"console"></div>
11 win
= window
.open('about:blank','blank','height=200,width=200');
12 shouldBeUndefined("win");
15 if (window
.testRunner
) {
16 testRunner
.dumpAsText();
17 testRunner
.setCanOpenWindows();
18 testRunner
.setPopupBlockingEnabled(true);
19 testRunner
.setCloseRemainingWindowsWhenComplete(true);
20 testRunner
.waitUntilDone();
23 clickEvent
= document
.createEvent("MouseEvents");
24 clickEvent
.initEvent("click", true, true, document
.defaultView
, 0, 0, 0, 0, 0, false, false, false, false, 0, null);
25 document
.getElementById("test").dispatchEvent(clickEvent
);
27 if (window
.testRunner
)
28 testRunner
.notifyDone();