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

Side by Side Diff: LayoutTests/fast/events/touch/gesture/pad-gesture-cancel.js

Issue 183703003: Remove more testRunner.display() calls from LayoutTests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Ditch fast/text/font-initial changes too Created 6 years, 9 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
OLDNEW
(Empty)
1 description("Tests basic use of GestureFlingCancel");
2
3 var expectedWheelEventsOccurred = "0";
4 var actualWheelEventsOccurred = 0;
5
6 function recordWheelEvent(event)
7 {
8 shouldBe('event.clientX', "10");
9 shouldBe('event.clientY', "11");
10
11 // Test deliberately does not equality check wheelDeltas to not be fragile i n the face of curve adjustment.
12 shouldBeTrue("event.wheelDeltaX > 5");
13 shouldBeTrue("event.wheelDeltaY > 5");
14 actualWheelEventsOccurred++;
15 }
16
17 document.addEventListener("mousewheel", recordWheelEvent);
18
19 if (window.testRunner && window.eventSender && window.eventSender.gestureFlingSt art) {
20 eventSender.gestureFlingStart(10, 11, 1000, 1000);
21 eventSender.gestureFlingCancel();
22 testRunner.display();
23 }
24
25 setTimeout(function() {
26 shouldBe('actualWheelEventsOccurred', expectedWheelEventsOccurred);
27 }, 100);
28
29 if (window.testRunner)
30 testRunner.waitUntilDone();
31
32 setTimeout(function() {
33 isSuccessfullyParsed();
34 if (window.testRunner)
35 testRunner.notifyDone();
36 }, 200);
OLDNEW
« no previous file with comments | « LayoutTests/fast/events/touch/gesture/pad-gesture-cancel.html ('k') | LayoutTests/fast/forms/hidden-listbox.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698