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

Side by Side Diff: LayoutTests/platform/chromium/fast/forms/calendar-picker/week-picker-key-operations.html

Issue 12082066: Merge 140778 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1364/
Patch Set: Created 7 years, 10 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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../../../../fast/js/resources/js-test-pre.js"></script> 4 <script src="../../../../../fast/js/resources/js-test-pre.js"></script>
5 <script src="../../../../../fast/forms/resources/picker-common.js"></script> 5 <script src="../../../../../fast/forms/resources/picker-common.js"></script>
6 <script src="resources/calendar-picker-common.js"></script> 6 <script src="resources/calendar-picker-common.js"></script>
7 </head> 7 </head>
8 <body> 8 <body>
9 <p id="description"></p> 9 <p id="description"></p>
10 <div id="console"></div> 10 <div id="console"></div>
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 // Test twice in case midnight. 99 // Test twice in case midnight.
100 shouldBeTrue('testToday() || testToday()'); 100 shouldBeTrue('testToday() || testToday()');
101 101
102 debug('Check if tabbing works.'); 102 debug('Check if tabbing works.');
103 shouldBe('focusedElement()', '".days-area-container"'); 103 shouldBe('focusedElement()', '".days-area-container"');
104 eventSender.keyDown('\t'); 104 eventSender.keyDown('\t');
105 shouldBe('focusedElement()', '".today-button[value=<<ThisWeekLabel>>]"'); 105 shouldBe('focusedElement()', '".today-button[value=<<ThisWeekLabel>>]"');
106 eventSender.keyDown('\t'); 106 eventSender.keyDown('\t');
107 shouldBe('focusedElement()', '".clear-button[value=<<CalendarClear>>]"'); 107 shouldBe('focusedElement()', '".clear-button[value=<<CalendarClear>>]"');
108 eventSender.keyDown('\t'); 108 eventSender.keyDown('\t');
109 shouldBe('focusedElement()', '".year-month-button[value=<<]"'); 109 shouldBe('focusedElement()', '".year-month-button"');
110 eventSender.keyDown('\t', ['shiftKey']); 110 eventSender.keyDown('\t', ['shiftKey']);
111 shouldBe('focusedElement()', '".clear-button[value=<<CalendarClear>>]"'); 111 shouldBe('focusedElement()', '".clear-button[value=<<CalendarClear>>]"');
112 112
113 eventSender.keyDown('\x1B'); 113 eventSender.keyDown('\x1B');
114 waitUntilClosing(test2AfterClosing); 114 waitUntilClosing(test2AfterClosing);
115 } 115 }
116 116
117 function test2AfterClosing() { 117 function test2AfterClosing() {
118 shouldBeNull('document.getElementById("mock-page-popup")'); 118 shouldBeNull('document.getElementById("mock-page-popup")');
119 shouldBe('document.getElementById("week").value', '"2000-W02"'); 119 shouldBe('document.getElementById("week").value', '"2000-W02"');
(...skipping 19 matching lines...) Expand all
139 var identifier = "." + element.className; 139 var identifier = "." + element.className;
140 if (element.value) 140 if (element.value)
141 identifier += "[value=" + element.value + "]"; 141 identifier += "[value=" + element.value + "]";
142 return identifier; 142 return identifier;
143 } 143 }
144 144
145 </script> 145 </script>
146 <script src="../../../../../fast/js/resources/js-test-post.js"></script> 146 <script src="../../../../../fast/js/resources/js-test-post.js"></script>
147 </body> 147 </body>
148 </html> 148 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698