| Index: LayoutTests/platform/chromium/fast/forms/calendar-picker/calendar-picker-touch-operations.html
|
| diff --git a/LayoutTests/platform/chromium/fast/forms/calendar-picker/calendar-picker-touch-operations.html b/LayoutTests/platform/chromium/fast/forms/calendar-picker/calendar-picker-touch-operations.html
|
| deleted file mode 100644
|
| index 17e143c226919eb9569678068786ab51c6eb8d60..0000000000000000000000000000000000000000
|
| --- a/LayoutTests/platform/chromium/fast/forms/calendar-picker/calendar-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=date id=date value="2000-01-02">
|
| -<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('date'), 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>
|
|
|