Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / events / popup-blocked-from-fake-button-click.html
blobf9ae6d3e555a1f74433af285cb63db34b4474960
1 <html>
2 <head>
3 <script src="../../resources/js-test.js"></script>
4 </head>
5 <body>
6 <button id="test" onclick="popup()" style="display:none"></button>
7 <div id="console"></div>
8 <script>
9 var win;
10 function popup() {
11 win = window.open("about:blank", "blank");
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 document.getElementById("test").click();
25 if (window.testRunner)
26 testRunner.notifyDone();
27 </script>
28 </body>
29 </html>