Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / events / popup-blocked-from-window-open.html
blob2bc97928f0059a3793f7d4e0b804ddbe6b853300
1 <html>
2 <head>
3 <script>
4 if (window.testRunner) {
5 testRunner.dumpAsText();
6 testRunner.setCanOpenWindows();
7 testRunner.setPopupBlockingEnabled(true);
8 testRunner.setCloseRemainingWindowsWhenComplete(true);
9 testRunner.waitUntilDone();
10 // Record current window count.
11 window.windowCount = window.testRunner.windowCount();
14 function test() {
15 if (window.testRunner && window.testRunner.windowCount() == window.windowCount)
16 document.getElementById("console").innerText = "PASSED";
17 // Close the test.
18 testRunner.notifyDone();
20 </script>
21 </head>
22 <body onload="test()">
23 <script>
24 window.open("javascript:window.open('about:blank', '_blank', 'height=600,width=720')");
25 </script>
26 If the inner pop-up was not blocked then there will be one additional windows generated. Otherwise, the test passes.<br>
27 For more details, please refer to https://bugs.webkit.org/show_bug.cgi?id=37138.
28 <div id="console">FAILED</div>
29 </body>
30 </html>