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

Side by Side Diff: LayoutTests/fast/events/touch/gesture/gesture-tap-active-state.html

Issue 130433009: Lock element at start of gesture sequence. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add test Created 6 years, 10 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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <script src="../../../../resources/js-test.js"></script> 3 <script src="../../../../resources/js-test.js"></script>
4 <style type="text/css"> 4 <style type="text/css">
5 #box { 5 #box {
6 background-color: blue; 6 background-color: blue;
7 width: 300px; 7 width: 300px;
8 height: 100px; 8 height: 100px;
9 } 9 }
10 10
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 } 53 }
54 54
55 if (window.testRunner) { 55 if (window.testRunner) {
56 window.jsTestIsAsync = true; 56 window.jsTestIsAsync = true;
57 testRunner.waitUntilDone(); 57 testRunner.waitUntilDone();
58 } 58 }
59 59
60 debug("Verify active isn't initially set"); 60 debug("Verify active isn't initially set");
61 shouldBeFalse("isBoxActive()"); 61 shouldBeFalse("isBoxActive()");
62 62
63
64 debug("Verify element locked for gesture sequence");
65 debug("Box shouldn't be active after tapdown on it");
66 eventSender.gestureTapDown(50, 50);
67 shouldBeFalse("isBoxActive()");
68 debug("Box should be active after showpress outside it");
69 eventSender.gestureShowPress(400, 50);
70 shouldBeTrue("isBoxActive()");
71
63 debug("Verify tapdown,tap sets and clears active"); 72 debug("Verify tapdown,tap sets and clears active");
64 eventSender.gestureShowPress(50, 50); 73 eventSender.gestureShowPress(50, 50);
65 shouldBeTrue("isBoxActive()"); 74 shouldBeTrue("isBoxActive()");
66 eventSender.gestureTap(50, 50); 75 eventSender.gestureTap(50, 50);
67 // FIXME: Enable after implementing mocked timers (http://crbug.com/319529) 76 // FIXME: Enable after implementing mocked timers (http://crbug.com/319529)
68 // shouldBeTrue("isBoxActive()"); 77 // shouldBeTrue("isBoxActive()");
69 waitUntilActiveCleared(); 78 waitUntilActiveCleared();
70 } 79 }
71 80
72 function waitUntilActiveCleared() 81 function waitUntilActiveCleared()
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 eventSender.touchEnd(); 131 eventSender.touchEnd();
123 shouldBeTrue("isBoxActive()"); 132 shouldBeTrue("isBoxActive()");
124 133
125 finishJSTest(); 134 finishJSTest();
126 } 135 }
127 136
128 runTests(); 137 runTests();
129 </script> 138 </script>
130 </body> 139 </body>
131 </html> 140 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698