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

Unified Diff: LayoutTests/platform/chromium/fast/forms/suggestion-picker/date-suggestion-picker-reset-value-after-reload.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-reset-value-after-reload.html
diff --git a/LayoutTests/platform/chromium/fast/forms/suggestion-picker/date-suggestion-picker-reset-value-after-reload.html b/LayoutTests/platform/chromium/fast/forms/suggestion-picker/date-suggestion-picker-reset-value-after-reload.html
deleted file mode 100644
index b58497ceba1e238d8c15253290e956d60c8581ba..0000000000000000000000000000000000000000
--- a/LayoutTests/platform/chromium/fast/forms/suggestion-picker/date-suggestion-picker-reset-value-after-reload.html
+++ /dev/null
@@ -1,66 +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>
-<script>
-description('Checks reloading page resets input values');
-
-var iframe;
-var testInput1;
-var testInput2;
-
-function runOnOpenPopup1() {
- iframe = document.getElementById('iframe');
-
- popupWindow.focus();
-
- shouldBeNull('highlightedEntry()');
- eventSender.keyDown('downArrow');
- shouldBe('highlightedEntry()', '"2012-01-01"');
- eventSender.keyDown("\n");
- waitUntilClosing(runOnOpenPopup1AfterClosing);
-}
-
-function runOnOpenPopup1AfterClosing() {
- shouldBeNull('document.getElementById("mock-page-popup")');
- shouldBe('iframe.contentDocument.getElementById("test1").value', '"2012-01-01"');
-
- openPicker(iframe.contentDocument.getElementById('test2'), runOnOpenPopup2);
-}
-
-function runOnOpenPopup2() {
- popupWindow.focus();
-
- shouldBeNull('highlightedEntry()');
- eventSender.keyDown('downArrow');
- shouldBe('highlightedEntry()', '"2012-01-01"');
- eventSender.keyDown("\n");
- waitUntilClosing(runOnOpenPopup2AfterClosing);
-}
-
-function runOnOpenPopup2AfterClosing() {
- shouldBeNull('document.getElementById("mock-page-popup")');
- shouldBe('iframe.contentDocument.getElementById("test2").value', '"2012-01-01"');
-
- iframe.addEventListener("load", function () { parent.runOnIFrameLoad(); });
- iframe.contentWindow.location.reload();
-}
-
-function runOnIFrameLoad()
-{
- testInput1 = iframe.contentDocument.getElementById('test1');
- testInput2 = iframe.contentDocument.getElementById('test2');
- shouldBeEqualToString('testInput1.value', '');
- shouldBeEqualToString('testInput2.value', '2002-02-02');
- iframe.parentNode.removeChild(iframe);
- waitUntilClosing(finishJSTest);
-}
-</script>
-<iframe id=iframe onload="openPicker(event.target.contentDocument.getElementById('test1'), runOnOpenPopup1);" srcdoc="<input type=date id=test1 list=suggestions><input type=date id=test2 value=2002-02-02 list=suggestions><datalist id=suggestions><option>2012-01-01</option></datalist>"></iframe>
-<script src="../../../../../fast/js/resources/js-test-post.js"></script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698