| Index: LayoutTests/platform/chromium/fast/forms/calendar-picker/month-picker-mouse-operations.html
|
| diff --git a/LayoutTests/platform/chromium/fast/forms/calendar-picker/month-picker-mouse-operations.html b/LayoutTests/platform/chromium/fast/forms/calendar-picker/month-picker-mouse-operations.html
|
| deleted file mode 100644
|
| index 8e3b36e5dcb51a64f44f72f23553f74bbcc3f123..0000000000000000000000000000000000000000
|
| --- a/LayoutTests/platform/chromium/fast/forms/calendar-picker/month-picker-mouse-operations.html
|
| +++ /dev/null
|
| @@ -1,123 +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=month id=month value="2000-01">
|
| -<script>
|
| -description("Tests if month 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('month'), test);
|
| -
|
| -function test() {
|
| - shouldBeEqualToString('currentMonth()', '2000-01');
|
| - shouldBeEqualToString('selectedValue()', '2000-01');
|
| - shouldBeEqualToString('selectedDayCells()', '2000-01-01,2000-01-02,2000-01-03,2000-01-04,2000-01-05,2000-01-06,2000-01-07,2000-01-08,2000-01-09,2000-01-10,2000-01-11,2000-01-12,2000-01-13,2000-01-14,2000-01-15,2000-01-16,2000-01-17,2000-01-18,2000-01-19,2000-01-20,2000-01-21,2000-01-22,2000-01-23,2000-01-24,2000-01-25,2000-01-26,2000-01-27,2000-01-28,2000-01-29,2000-01-30,2000-01-31');
|
| - shouldBeEqualToString('highlightedValue()', '2000-01');
|
| - shouldBeEqualToString('highlightedDayCells()', '2000-01-01,2000-01-02,2000-01-03,2000-01-04,2000-01-05,2000-01-06,2000-01-07,2000-01-08,2000-01-09,2000-01-10,2000-01-11,2000-01-12,2000-01-13,2000-01-14,2000-01-15,2000-01-16,2000-01-17,2000-01-18,2000-01-19,2000-01-20,2000-01-21,2000-01-22,2000-01-23,2000-01-24,2000-01-25,2000-01-26,2000-01-27,2000-01-28,2000-01-29,2000-01-30,2000-01-31');
|
| -
|
| - debug('Check that hovering over an entry highlights it.');
|
| - hoverOverDayCellAt(0, 0);
|
| - shouldBeEqualToString('currentMonth()', '2000-01');
|
| - shouldBeEqualToString('selectedValue()', '2000-01');
|
| - shouldBeEqualToString('selectedDayCells()', '2000-01-01,2000-01-02,2000-01-03,2000-01-04,2000-01-05,2000-01-06,2000-01-07,2000-01-08,2000-01-09,2000-01-10,2000-01-11,2000-01-12,2000-01-13,2000-01-14,2000-01-15,2000-01-16,2000-01-17,2000-01-18,2000-01-19,2000-01-20,2000-01-21,2000-01-22,2000-01-23,2000-01-24,2000-01-25,2000-01-26,2000-01-27,2000-01-28,2000-01-29,2000-01-30,2000-01-31');
|
| - shouldBeEqualToString('highlightedValue()', '1999-12');
|
| - shouldBeEqualToString('highlightedDayCells()', '1999-12-26,1999-12-27,1999-12-28,1999-12-29,1999-12-30,1999-12-31');
|
| -
|
| - hoverOverDayCellAt(6, 5);
|
| - shouldBeEqualToString('currentMonth()', '2000-01');
|
| - shouldBeEqualToString('selectedValue()', '2000-01');
|
| - shouldBeEqualToString('selectedDayCells()', '2000-01-01,2000-01-02,2000-01-03,2000-01-04,2000-01-05,2000-01-06,2000-01-07,2000-01-08,2000-01-09,2000-01-10,2000-01-11,2000-01-12,2000-01-13,2000-01-14,2000-01-15,2000-01-16,2000-01-17,2000-01-18,2000-01-19,2000-01-20,2000-01-21,2000-01-22,2000-01-23,2000-01-24,2000-01-25,2000-01-26,2000-01-27,2000-01-28,2000-01-29,2000-01-30,2000-01-31');
|
| - shouldBeEqualToString('highlightedValue()', '2000-02');
|
| - shouldBeEqualToString('highlightedDayCells()', '2000-02-01,2000-02-02,2000-02-03,2000-02-04,2000-02-05');
|
| -
|
| - hoverOverDayCellAt(3, 3);
|
| - shouldBeEqualToString('currentMonth()', '2000-01');
|
| - shouldBeEqualToString('selectedValue()', '2000-01');
|
| - shouldBeEqualToString('selectedDayCells()', '2000-01-01,2000-01-02,2000-01-03,2000-01-04,2000-01-05,2000-01-06,2000-01-07,2000-01-08,2000-01-09,2000-01-10,2000-01-11,2000-01-12,2000-01-13,2000-01-14,2000-01-15,2000-01-16,2000-01-17,2000-01-18,2000-01-19,2000-01-20,2000-01-21,2000-01-22,2000-01-23,2000-01-24,2000-01-25,2000-01-26,2000-01-27,2000-01-28,2000-01-29,2000-01-30,2000-01-31');
|
| - shouldBeEqualToString('highlightedValue()', '2000-01');
|
| - shouldBeEqualToString('highlightedDayCells()', '2000-01-01,2000-01-02,2000-01-03,2000-01-04,2000-01-05,2000-01-06,2000-01-07,2000-01-08,2000-01-09,2000-01-10,2000-01-11,2000-01-12,2000-01-13,2000-01-14,2000-01-15,2000-01-16,2000-01-17,2000-01-18,2000-01-19,2000-01-20,2000-01-21,2000-01-22,2000-01-23,2000-01-24,2000-01-25,2000-01-26,2000-01-27,2000-01-28,2000-01-29,2000-01-30,2000-01-31');
|
| -
|
| - debug('Check that mouse click sets the value.');
|
| - clickDayCellAt(6, 0);
|
| - shouldBeEqualToString('currentMonth()', '2000-01');
|
| - shouldBeEqualToString('selectedValue()', '2000-01');
|
| - shouldBeEqualToString('selectedDayCells()', '2000-01-01,2000-01-02,2000-01-03,2000-01-04,2000-01-05,2000-01-06,2000-01-07,2000-01-08,2000-01-09,2000-01-10,2000-01-11,2000-01-12,2000-01-13,2000-01-14,2000-01-15,2000-01-16,2000-01-17,2000-01-18,2000-01-19,2000-01-20,2000-01-21,2000-01-22,2000-01-23,2000-01-24,2000-01-25,2000-01-26,2000-01-27,2000-01-28,2000-01-29,2000-01-30,2000-01-31');
|
| - shouldBeEqualToString('highlightedValue()', '2000-01');
|
| - shouldBeEqualToString('highlightedDayCells()', '2000-01-01,2000-01-02,2000-01-03,2000-01-04,2000-01-05,2000-01-06,2000-01-07,2000-01-08,2000-01-09,2000-01-10,2000-01-11,2000-01-12,2000-01-13,2000-01-14,2000-01-15,2000-01-16,2000-01-17,2000-01-18,2000-01-19,2000-01-20,2000-01-21,2000-01-22,2000-01-23,2000-01-24,2000-01-25,2000-01-26,2000-01-27,2000-01-28,2000-01-29,2000-01-30,2000-01-31');
|
| - shouldBeEqualToString('document.getElementById("month").value', '2000-01');
|
| -
|
| - debug('Check that clicking the month popup button opens the month popup.');
|
| - shouldBeFalse('popupWindow.global.picker.monthPopupView.isVisible');
|
| - clickMonthPopupButton();
|
| - shouldBeTrue('popupWindow.global.picker.monthPopupView.isVisible');
|
| - shouldBeEqualToString('highlightedMonthButton()', '2000-01');
|
| -
|
| - debug('Check that hovering over a month button highlights it.');
|
| -
|
| - hoverOverMonthButton(2000, 9);
|
| - shouldBeEqualToString('highlightedMonthButton()', '2000-10');
|
| -
|
| - debug('Check that month wheel scrolls the list in the month popup.');
|
| -
|
| - checkYearListViewScrollOffset();
|
| - eventSender.mouseScrollBy(0, 120);
|
| - shouldBeTrue('checkYearListViewScrollOffset() > 0');
|
| -
|
| - checkYearListViewScrollOffset();
|
| - eventSender.mouseScrollBy(0, -120);
|
| - shouldBeTrue('checkYearListViewScrollOffset() < 0');
|
| -
|
| - debug('Check that clicking the month popup sets the month.');
|
| -
|
| - clickMonthButton(2000, 5);
|
| - shouldBeFalse('popupWindow.global.picker.monthPopupView.isVisible');
|
| - shouldBeEqualToString('currentMonth()', '2000-06');
|
| -
|
| - debug('Check that clicking the month popup button opens the month popup.');
|
| - shouldBeFalse('popupWindow.global.picker.monthPopupView.isVisible');
|
| - clickMonthPopupButton();
|
| - shouldBeTrue('popupWindow.global.picker.monthPopupView.isVisible');
|
| - shouldBeEqualToString('highlightedMonthButton()', '2000-06');
|
| - checkYearListViewScrollOffset();
|
| -
|
| - debug('Check that hovering over a month button highlights it.');
|
| -
|
| - hoverOverMonthButton(2000, 9);
|
| - shouldBeEqualToString('highlightedMonthButton()', '2000-10');
|
| -
|
| - debug('Check that month wheel scrolls the list in the month popup.');
|
| -
|
| - eventSender.mouseScrollBy(0, 1);
|
| - shouldBeTrue('checkYearListViewScrollOffset() > 0');
|
| -
|
| - eventSender.mouseScrollBy(0, -1);
|
| - shouldBeTrue('checkYearListViewScrollOffset() < 0');
|
| -
|
| - debug('Check that clicking an year list cell opens it.');
|
| - eventSender.mouseScrollBy(0, 10);
|
| - shouldBeTrue('checkYearListViewScrollOffset() > 0');
|
| - clickYearListCell(1999);
|
| - shouldBeEqualToString('highlightedMonthButton()', '1999-10');
|
| -
|
| - debug('Check that clicking the month popup sets the month.');
|
| -
|
| - clickMonthButton(1999, 5);
|
| - shouldBeFalse('popupWindow.global.picker.monthPopupView.isVisible');
|
| - shouldBeEqualToString('currentMonth()', '1999-06');
|
| -
|
| - finishJSTest();
|
| -}
|
| -</script>
|
| -<script src="../../../../../fast/js/resources/js-test-post.js"></script>
|
| -</body>
|
| -</html>
|
|
|