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

Unified Diff: third_party/WebKit/LayoutTests/fast/forms/select-popup/popup-menu-touch-operations.html

Issue 2517253002: Drop down list closes on touch scroll/pinch zoom (Closed)
Patch Set: Created 4 years, 1 month 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: third_party/WebKit/LayoutTests/fast/forms/select-popup/popup-menu-touch-operations.html
diff --git a/third_party/WebKit/LayoutTests/fast/forms/select-popup/popup-menu-touch-operations.html b/third_party/WebKit/LayoutTests/fast/forms/select-popup/popup-menu-touch-operations.html
index 71d3e8ca11d4f0a6f6c5fe78a98d69d9bb0f7dc8..c1985ac15e0f3a26b1a036c262469000225ddc0c 100644
--- a/third_party/WebKit/LayoutTests/fast/forms/select-popup/popup-menu-touch-operations.html
+++ b/third_party/WebKit/LayoutTests/fast/forms/select-popup/popup-menu-touch-operations.html
@@ -146,8 +146,28 @@ function test2AfterScrollEvent() {
shouldNotBe('window.internals.pagePopupWindow', 'null');
shouldBeEqualToString('menuElement2.value', '2');
- finishJSTest();
+ test3();
}
+
+function test3() {
+ debug("==> Test popup closes on outside GestureTapDawn");
+ eventSender.clearTouchPoints();
+ openPicker(menuElement, function () {
+ eventSender.addTouchPoint(300, 300);
+ eventSender.touchStart(300, 300);
+ eventSender.gestureTapDown(300, 300);
bokan 2016/11/21 20:14:36 We seem to be doing both a touch move and a gestur
sahel 2016/11/21 20:41:44 I can get rid of the touch move, here. I used Gest
bokan 2016/11/22 16:00:08 Ok, just get rid of everything but the GestureTapD
sahel 2016/11/24 15:29:25 Done.
+ eventSender.touchMove(300, 400);
+ eventSender.releaseTouchPoint(0);
+ eventSender.touchEnd(300, 400);
+ shouldBeNull('window.internals.pagePopupWindow');
+ finishJSTest();
+ }, function () {
+ testFailed('picker didn\'t open')
+ finishJSTest();
+ });
+}
+
+
</script>
</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698