Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(41)

Side by Side Diff: LayoutTests/fast/loader/navigation-scheduler-user-gesture.html

Issue 14732009: Make NavigationScheduler correctly track user gestures. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/fast/loader/navigation-scheduler-user-gesture-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../js/resources/js-test-pre.js"></script>
3 <a href='about:blank' target='_blank'></a>
4 <button>click me</button>
5 <script>
6 description('Check that the NavigationScheduler correctly tracks user gestur es');
7 if (window.testRunner) {
8 testRunner.setCanOpenWindows();
9 testRunner.setPopupBlockingEnabled(true);
10 }
11
12 function popup() {
13 // Previously, this made the NavigationController create an additional
14 // user gesture.
15 window.open('javascript:', '_self', '');
16 // Consume one gesture.
17 window.open('about:blank').close();
18 shouldBeUndefined("window.open('about:blank')");
19 }
20
21 var button = document.querySelector('button');
22 button.onclick = popup;
23
24 if (window.testRunner) {
25 eventSender.mouseMoveTo(button.offsetLeft + 2, button.offsetTop + 2);
26 eventSender.mouseDown();
27 eventSender.mouseUp();
28 }
29 </script>
30 <script src="../js/resources/js-test-post.js"></script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/loader/navigation-scheduler-user-gesture-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698