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

Unified Diff: LayoutTests/platform/chromium/fast/forms/suggestion-picker/date-suggestion-picker-step-attribute.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/suggestion-picker/date-suggestion-picker-step-attribute.html
diff --git a/LayoutTests/platform/chromium/fast/forms/suggestion-picker/date-suggestion-picker-step-attribute.html b/LayoutTests/platform/chromium/fast/forms/suggestion-picker/date-suggestion-picker-step-attribute.html
deleted file mode 100644
index 8ad345f3d544be5eca3e9b6204f3832e61c3d1e1..0000000000000000000000000000000000000000
--- a/LayoutTests/platform/chromium/fast/forms/suggestion-picker/date-suggestion-picker-step-attribute.html
+++ /dev/null
@@ -1,90 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<script src="../../../../../fast/js/resources/js-test-pre.js"></script>
-<script src="../../../../../fast/forms/resources/picker-common.js"></script>
-<script src="resources/suggestion-picker-common.js"></script>
-</head>
-<body style="background-color: #bbbbbb;">
-<p id="description"></p>
-<div id="console"></div>
-<input type=date id=date value="2012-01-01" step="2" list=suggestions>
-<datalist id=suggestions>
- <option>2012-01-21</option>
- <option>2012-01-22</option>
- <option>2012-01-23</option>
- <option>2012-01-24</option>
- <option>2012-01-25</option>
- <option>2012-01-26</option>
- <option>2012-01-27</option>
- <option>2012-01-28</option>
- <option>2012-01-29</option>
- <option>2012-01-30</option>
-</datalist>
-
-<p id="description" style="opacity: 0"></p>
-<div id="console" style="opacity: 0"></div>
-
-<script>
-description('Tests that step attribute filters out suggestions as expected.');
-
-debug('Check that page popup doesn\'t exist at first.');
-shouldBeNull('document.getElementById("mock-page-popup")');
-
-var dateElement = document.getElementById('date');
-
-window.onload = function() {
- openPicker(dateElement, test1);
-}
-
-function test1() {
- popupWindow.focus();
-
- shouldBe('entryValues().length', '6');
- shouldBeEqualToString('entryValues()[0]', '2012-01-21');
- shouldBeEqualToString('entryValues()[1]', '2012-01-23');
- shouldBeEqualToString('entryValues()[2]', '2012-01-25');
- shouldBeEqualToString('entryValues()[3]', '2012-01-27');
- shouldBeEqualToString('entryValues()[4]', '2012-01-29');
- shouldBeEqualToString('entryValues()[5]', '@openCalendarPicker');
-
- eventSender.keyDown('\x1B'); // Close picker.
- waitUntilClosing(test1AfterClosing);
-}
-
-function test1AfterClosing() {
- dateElement.step = 5;
- openPicker(dateElement, test2);
-}
-
-function test2() {
- popupWindow.focus();
-
- shouldBe('entryValues().length', '3');
- shouldBeEqualToString('entryValues()[0]', '2012-01-21');
- shouldBeEqualToString('entryValues()[1]', '2012-01-26');
- shouldBeEqualToString('entryValues()[2]', '@openCalendarPicker');
-
- eventSender.keyDown('\x1B'); // Close picker.
- waitUntilClosing(test2AfterClosing);
-}
-
-function test2AfterClosing() {
- dateElement.step = 30;
- openPicker(dateElement, test3);
-}
-
-function test3() {
- popupWindow.focus();
-
- shouldBe('entryValues().length', '2');
- shouldBeEqualToString('entryValues()[0]', '2012-01-21');
- shouldBeEqualToString('entryValues()[1]', '@openCalendarPicker');
-
- finishJSTest();
-}
-
-</script>
-<script src="../../../../../fast/js/resources/js-test-post.js"></script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698