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

Unified Diff: LayoutTests/platform/chromium/fast/forms/calendar-picker/calendar-picker-mouse-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/calendar-picker-mouse-operations.html
diff --git a/LayoutTests/platform/chromium/fast/forms/calendar-picker/calendar-picker-mouse-operations.html b/LayoutTests/platform/chromium/fast/forms/calendar-picker/calendar-picker-mouse-operations.html
deleted file mode 100644
index b101874d0f1d6f7c085c9777f386daf9137db244..0000000000000000000000000000000000000000
--- a/LayoutTests/platform/chromium/fast/forms/calendar-picker/calendar-picker-mouse-operations.html
+++ /dev/null
@@ -1,97 +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 opearations 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() {
- shouldBeEqualToString('currentMonth()', '2000-01');
- shouldBeEqualToString('selectedValue()', '2000-01-02');
- shouldBeEqualToString('selectedDayCells()', '2000-01-02');
- shouldBeEqualToString('highlightedValue()', '2000-01-02');
- shouldBeEqualToString('highlightedDayCells()', '2000-01-02');
-
- debug('Check that hovering over an entry highlights it.');
- hoverOverDayCellAt(5, 0);
- shouldBeEqualToString('currentMonth()', '2000-01');
- shouldBeEqualToString('selectedValue()', '2000-01-02');
- shouldBeEqualToString('selectedDayCells()', '2000-01-02');
- shouldBeEqualToString('highlightedValue()', '1999-12-31');
- shouldBeEqualToString('highlightedDayCells()', '1999-12-31');
-
- hoverOverDayCellAt(2, 1);
- shouldBeEqualToString('currentMonth()', '2000-01');
- shouldBeEqualToString('selectedValue()', '2000-01-02');
- shouldBeEqualToString('selectedDayCells()', '2000-01-02');
- shouldBeEqualToString('highlightedValue()', '2000-01-04');
- shouldBeEqualToString('highlightedDayCells()', '2000-01-04');
-
- debug('Check that navigating between months maintains highlighted position.');
- eventSender.keyDown('m');
- shouldBeEqualToString('currentMonth()', '2000-02');
- shouldBeEqualToString('selectedValue()', '2000-01-02');
- shouldBeEqualToString('selectedDayCells()', '');
- shouldBeEqualToString('highlightedValue()', '2000-02-08');
- shouldBeEqualToString('highlightedDayCells()', '2000-02-08');
-
- debug('Check that mouse click sets the value.');
- clickDayCellAt(6, 0);
- shouldBeEqualToString('currentMonth()', '2000-02');
- shouldBeEqualToString('selectedValue()', '2000-02-05');
- shouldBeEqualToString('selectedDayCells()', '2000-02-05');
- shouldBeEqualToString('highlightedValue()', '2000-02-05');
- shouldBeEqualToString('highlightedDayCells()', '2000-02-05');
- shouldBeEqualToString('document.getElementById("date").value', '2000-02-05');
-
- 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-02');
- 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>

Powered by Google App Engine
This is Rietveld 408576698