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

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

Issue 58533003: Move fast/js/resources files to resources. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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="../../js/resources/js-test-pre.js"></script> 4 <script src="../../../resources/js-test.js"></script>
5 <p id="description"></p> 5 <p id="description"></p>
6 <div id="console"></div> 6 <div id="console"></div>
7 <input type="date" id="date1" value="2000-01-02"> 7 <input type="date" id="date1" value="2000-01-02">
8 <script> 8 <script>
9 description("Tests if calendar picker key bindings work as expected."); 9 description("Tests if calendar picker key bindings work as expected.");
10 if (window.internals) 10 if (window.internals)
11 internals.setEnableMockPagePopup(true); 11 internals.setEnableMockPagePopup(true);
12 var date1 = document.getElementById('date1'); 12 var date1 = document.getElementById('date1');
13 date1.offsetTop; // date1 needs to have non-empty bound rectangle. 13 date1.offsetTop; // date1 needs to have non-empty bound rectangle.
14 debug('Check that page popup doesn\'t exist at first.'); 14 debug('Check that page popup doesn\'t exist at first.');
15 shouldBeNull('document.getElementById("mock-page-popup")'); 15 shouldBeNull('document.getElementById("mock-page-popup")');
16 16
17 var event = document.createEvent('KeyboardEvent'); 17 var event = document.createEvent('KeyboardEvent');
18 event.initKeyboardEvent('keydown', true, true, document.defaultView, 'F4'); 18 event.initKeyboardEvent('keydown', true, true, document.defaultView, 'F4');
19 date1.dispatchEvent(event); 19 date1.dispatchEvent(event);
20 shouldBeNonNull('document.getElementById("mock-page-popup")'); 20 shouldBeNonNull('document.getElementById("mock-page-popup")');
21 </script> 21 </script>
22 </body> 22 </body>
23 </html> 23 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698