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

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

Issue 629103002: Don't use mock PagePopup if possible. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 2 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 | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../../resources/js-test.js"></script> 4 <script src="../../../resources/js-test.js"></script>
5 <script src="../../forms/resources/picker-common.js"></script> 5 <script src="../../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>
11 <input type=week id=week value="2000-W01"> 11 <input type=week id=week value="2000-W01">
12 <script> 12 <script>
13 description("Tests if month picker key bindings work as expected."); 13 description("Tests if month picker key bindings work as expected.");
14 14
15 debug('Check that page popup doesn\'t exist at first.'); 15 debug('Check that page popup doesn\'t exist at first.');
16 shouldBeNull('document.getElementById("mock-page-popup")'); 16 shouldBeNull('document.getElementById("mock-page-popup")');
17 17
18 openPickerWithMock(document.getElementById('week'), test1); 18 openPicker(document.getElementById('week'), test1);
19 19
20 function test1() { 20 function test1() {
21 debug('Check that page popup exists.'); 21 debug('Check that page popup exists.');
22 shouldBeEqualToString('popupWindow.pagePopupController.toString()', '[object PagePopupController]'); 22 shouldBeEqualToString('popupWindow.pagePopupController.toString()', '[object PagePopupController]');
23 23
24 shouldBeFalse('isCalendarTableScrollingWithAnimation()'); 24 shouldBeFalse('isCalendarTableScrollingWithAnimation()');
25 shouldBeEqualToString('currentMonth()', '2000-01'); 25 shouldBeEqualToString('currentMonth()', '2000-01');
26 shouldBeEqualToString('selectedValue()', '2000-W01'); 26 shouldBeEqualToString('selectedValue()', '2000-W01');
27 shouldBeEqualToString('selectedDayCells()', '2000-01-03,2000-01-04,2000-01-0 5,2000-01-06,2000-01-07,2000-01-08,2000-01-09'); 27 shouldBeEqualToString('selectedDayCells()', '2000-01-03,2000-01-04,2000-01-0 5,2000-01-06,2000-01-07,2000-01-08,2000-01-09');
28 shouldBeEqualToString('highlightedValue()', '2000-W01'); 28 shouldBeEqualToString('highlightedValue()', '2000-W01');
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 return null; 265 return null;
266 var identifier = "." + element.className; 266 var identifier = "." + element.className;
267 if (element.value) 267 if (element.value)
268 identifier += "[value=" + element.value + "]"; 268 identifier += "[value=" + element.value + "]";
269 return identifier; 269 return identifier;
270 } 270 }
271 271
272 </script> 272 </script>
273 </body> 273 </body>
274 </html> 274 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698