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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/events/touch/gesture/gesture-tap-active-state.html
diff --git a/LayoutTests/fast/events/touch/gesture/gesture-tap-active-state.html b/LayoutTests/fast/events/touch/gesture/gesture-tap-active-state.html
index 63c2dbe99d726a9075f6fd5788cf37dcc3a4efd2..e66b4b39951872ea17d49711e44b089110f9370c 100644
--- a/LayoutTests/fast/events/touch/gesture/gesture-tap-active-state.html
+++ b/LayoutTests/fast/events/touch/gesture/gesture-tap-active-state.html
@@ -60,6 +60,15 @@ function runTests()
debug("Verify active isn't initially set");
shouldBeFalse("isBoxActive()");
+
+ debug("Verify element locked for gesture sequence");
+ debug("Box shouldn't be active after tapdown on it");
+ eventSender.gestureTapDown(50, 50);
+ shouldBeFalse("isBoxActive()");
+ debug("Box should be active after showpress outside it");
+ eventSender.gestureShowPress(400, 50);
+ shouldBeTrue("isBoxActive()");
+
debug("Verify tapdown,tap sets and clears active");
eventSender.gestureShowPress(50, 50);
shouldBeTrue("isBoxActive()");

Powered by Google App Engine
This is Rietveld 408576698