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

Side by Side Diff: LayoutTests/fast/forms/calendar-picker/date-picker-ax.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 <body> 3 <body>
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 <p id="description"></p> 7 <p id="description"></p>
8 <div id="console"></div> 8 <div id="console"></div>
9 <input type="date" id="date1" value="2000-01-02"> 9 <input type="date" id="date1" value="2000-01-02">
10 10
(...skipping 14 matching lines...) Expand all
25 } else if (activeDescendantCounter == 4) { 25 } else if (activeDescendantCounter == 4) {
26 // Highlight 1999-10 in the month popup. 26 // Highlight 1999-10 in the month popup.
27 setTimeout(function() { eventSender.keyDown('upArrow'); }, 0); 27 setTimeout(function() { eventSender.keyDown('upArrow'); }, 0);
28 } else if (activeDescendantCounter == 5) { 28 } else if (activeDescendantCounter == 5) {
29 finishJSTest(); 29 finishJSTest();
30 } 30 }
31 } 31 }
32 }); 32 });
33 var activeDescendantCounter = 0; 33 var activeDescendantCounter = 0;
34 var date1 = document.getElementById('date1'); 34 var date1 = document.getElementById('date1');
35 openPickerWithMock(date1, test1); 35 openPicker(date1, test1);
36 36
37 function test1() { 37 function test1() {
38 eventSender.keyDown('rightArrow'); 38 eventSender.keyDown('rightArrow');
39 } 39 }
40 40
41 function testButtonDescription() { 41 function testButtonDescription() {
42 // Focus on 'next month' button. 42 // Focus on 'next month' button.
43 eventSender.keyDown('\t', ['shiftKey']); 43 eventSender.keyDown('\t', ['shiftKey']);
44 // Focus on the today button. 44 // Focus on the today button.
45 eventSender.keyDown('\t', ['shiftKey']); 45 eventSender.keyDown('\t', ['shiftKey']);
46 // Focus on 'previous month' button. 46 // Focus on 'previous month' button.
47 eventSender.keyDown('\t', ['shiftKey']); 47 eventSender.keyDown('\t', ['shiftKey']);
48 // Focus on the month selector button. 48 // Focus on the month selector button.
49 eventSender.keyDown('\t', ['shiftKey']); 49 eventSender.keyDown('\t', ['shiftKey']);
50 50
51 debug('Open the month popup. This should notify the third ActiveDescendantCh anged.'); 51 debug('Open the month popup. This should notify the third ActiveDescendantCh anged.');
52 eventSender.keyDown(' '); 52 eventSender.keyDown(' ');
53 } 53 }
54 </script> 54 </script>
55 </body> 55 </body>
56 </html> 56 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698