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

Unified Diff: LayoutTests/platform/chromium/fast/forms/calendar-picker/week-picker-touch-operations.html

Issue 14120003: Move LayoutTests from platform/chromium/... to generic location (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 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/platform/chromium/fast/forms/calendar-picker/week-picker-touch-operations.html
diff --git a/LayoutTests/platform/chromium/fast/forms/calendar-picker/week-picker-touch-operations.html b/LayoutTests/platform/chromium/fast/forms/calendar-picker/week-picker-touch-operations.html
deleted file mode 100644
index a53b1dc4ae77f9b4b41a026bfeacd4a6e3f3c5bb..0000000000000000000000000000000000000000
--- a/LayoutTests/platform/chromium/fast/forms/calendar-picker/week-picker-touch-operations.html
+++ /dev/null
@@ -1,62 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<script src="../../../../../fast/js/resources/js-test-pre.js"></script>
-<script src="../../../../../fast/forms/resources/common.js"></script>
-<script src="../../../../../fast/forms/resources/picker-common.js"></script>
-<script src="resources/calendar-picker-common.js"></script>
-</head>
-<body>
-<p id="description"></p>
-<div id="console"></div>
-<input type=week id=week value="2000-W01">
-<script>
-description("Tests if calendar picker mouse operations work as expected.");
-
-debug('Check that page popup doesn\'t exist at first.');
-shouldBeNull('document.getElementById("mock-page-popup")');
-
-openPicker(document.getElementById('week'), test);
-
-function test() {
- debug('Open the month popup.');
- shouldBeFalse('popupWindow.global.picker.monthPopupView.isVisible');
- clickMonthPopupButton();
- shouldBeTrue('popupWindow.global.picker.monthPopupView.isVisible');
-
- debug('Check that touch swiping scrolls the list in the month popup.');
-
- window.internals.settings.setTouchEventEmulationEnabled(true);
- checkYearListViewScrollOffset();
-
- popupWindow.global.picker.monthPopupView.yearListView.element.addEventListener('touchend', testAfterSwipingDown, false);
- hoverOverMonthButton(2000, 0);
- eventSender.mouseDown();
- hoverOverMonthButton(2000, 11);
- eventSender.mouseUp();
-}
-
-function testAfterSwipingDown() {
- shouldBeTrue('checkYearListViewScrollOffset() > 0');
- popupWindow.global.picker.monthPopupView.yearListView.element.removeEventListener('touchend', testAfterSwipingDown, false);
- setTimeout(testSwipingUp, 0);
-}
-
-function testSwipingUp() {
- checkYearListViewScrollOffset();
- popupWindow.global.picker.monthPopupView.yearListView.element.addEventListener('touchend', testAfterSwipingUp, false);
- eventSender.mouseDown();
- hoverOverMonthPopupButton();
- eventSender.mouseUp();
-}
-
-function testAfterSwipingUp() {
- shouldBeTrue('checkYearListViewScrollOffset() < 0');
- popupWindow.global.picker.monthPopupView.yearListView.element.removeEventListener('touchend', testAfterSwipingUp, false);
- window.internals.settings.setTouchEventEmulationEnabled(false);
- finishJSTest();
-}
-</script>
-<script src="../../../../../fast/js/resources/js-test-post.js"></script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698