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

Side by Side Diff: LayoutTests/fast/forms/date/date-click-on-label.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> 1 <!DOCTYPE>
2 <body id=body> 2 <body id=body>
3 <script src="../../js/resources/js-test-pre.js"></script> 3 <script src="../../../resources/js-test.js"></script>
4 4
5 <label id="label1">Label: <input type="date" id="date1"></label> 5 <label id="label1">Label: <input type="date" id="date1"></label>
6 <script> 6 <script>
7 debug('Check if clicking a label focuses on a date input in it.'); 7 debug('Check if clicking a label focuses on a date input in it.');
8 // Force layout because we can't focus on elements without RenderBox. 8 // Force layout because we can't focus on elements without RenderBox.
9 document.body.offsetLeft; 9 document.body.offsetLeft;
10 shouldBeEqualToString('document.activeElement.id', 'body'); 10 shouldBeEqualToString('document.activeElement.id', 'body');
11 debug('Clicking a label.'); 11 debug('Clicking a label.');
12 var clickEvent = document.createEvent('MouseEvent'); 12 var clickEvent = document.createEvent('MouseEvent');
13 clickEvent.initEvent('click', true, true); 13 clickEvent.initEvent('click', true, true);
14 document.getElementById('label1').dispatchEvent(clickEvent); 14 document.getElementById('label1').dispatchEvent(clickEvent);
15 shouldBeEqualToString('document.activeElement.id', 'date1'); 15 shouldBeEqualToString('document.activeElement.id', 'date1');
16 </script> 16 </script>
17 </body> 17 </body>
OLDNEW
« no previous file with comments | « LayoutTests/fast/forms/date/ValidityState-typeMismatch-date.html ('k') | LayoutTests/fast/forms/date/date-input-type.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698