5 Check that the NavigationScheduler correctly tracks user gestures.
8 <a href='about:blank' target='_blank'
></a>
9 <button>click me
</button>
11 if (window
.testRunner
) {
12 testRunner
.dumpAsText();
13 testRunner
.waitUntilDone();
14 testRunner
.setCanOpenWindows();
15 testRunner
.setPopupBlockingEnabled(true);
19 // Previously, this made the NavigationController create an additional
21 window
.open('javascript:', '_self', '');
22 // Consume one gesture.
23 window
.open('about:blank').close();
24 var w
= window
.open('about:blank');
26 document
.querySelector('#log').innerText
= 'PASS: only one window opened';
28 document
.querySelector('#log').innerText
= 'FAIL: could open two windows';
29 if (window
.testRunner
)
30 testRunner
.notifyDone();
33 var button
= document
.querySelector('button');
34 button
.onclick
= popup
;
36 if (window
.testRunner
) {
37 eventSender
.mouseMoveTo(button
.offsetLeft
+ 2, button
.offsetTop
+ 2);
38 eventSender
.mouseDown();
39 eventSender
.mouseUp();