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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/events/touch/gesture/pad-gesture-fling.js

Issue 2908073008: Remove a frame of delay on main-thread FlingStart. [2nd land] (Closed)
Patch Set: Fix pad-gesture-fling properlyy Created 3 years, 6 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/events/touch/gesture/pad-gesture-fling-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
1 description("Tests basic use of GestureFlingStart"); 1 description("Tests basic use of GestureFlingStart");
2 2
3 var actualWheelEventsOccurred = 0; 3 var actualWheelEventsOccurred = 0;
4 var cumulativeScrollX = 0; 4 var cumulativeScrollX = 0;
5 var cumulativeScrollY = 0; 5 var cumulativeScrollY = 0;
6 6
7 var minimumWheelEventsExpected = "2"; 7 var minimumWheelEventsExpected = "1";
8 var minimumScrollXExpected = 300; 8 var minimumScrollXExpected = 300;
9 var minimumScrollYExpected = 300; 9 var minimumScrollYExpected = 300;
10 10
11 var positionX = 10; 11 var positionX = 10;
12 var positionY = 11; 12 var positionY = 11;
13 var velocityX = 10000; 13 var velocityX = 10000;
14 var velocityY = 10000; 14 var velocityY = 10000;
15 15
16 function recordWheelEvent(event) 16 function recordWheelEvent(event)
17 { 17 {
(...skipping 21 matching lines...) Expand all
39 } 39 }
40 40
41 document.addEventListener("mousewheel", recordWheelEvent); 41 document.addEventListener("mousewheel", recordWheelEvent);
42 42
43 if (window.testRunner && window.eventSender && window.eventSender.gestureFlingSt art) { 43 if (window.testRunner && window.eventSender && window.eventSender.gestureFlingSt art) {
44 eventSender.gestureFlingStart(positionX, positionY, velocityX, velocityY, "t ouchpad"); 44 eventSender.gestureFlingStart(positionX, positionY, velocityX, velocityY, "t ouchpad");
45 } 45 }
46 46
47 if (window.testRunner) 47 if (window.testRunner)
48 testRunner.waitUntilDone(); 48 testRunner.waitUntilDone();
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/events/touch/gesture/pad-gesture-fling-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698