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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/forms/date/date-appearance-basic.html

Issue 2295653002: Use window.testRunner in if-clause (Closed)
Patch Set: a Created 4 years, 3 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 <html> 1 <html>
2 <body> 2 <body>
3 <script> 3 <script>
4 if (testRunner) 4 if (window.testRunner)
5 testRunner.dumpAsTextWithPixelResults(); 5 testRunner.dumpAsTextWithPixelResults();
6 </script> 6 </script>
7 <ul> 7 <ul>
8 <li>Basic <input type="date" autofocus> <input type="date" value="2012-10-05 "></li> 8 <li>Basic <input type="date" autofocus> <input type="date" value="2012-10-05 "></li>
9 <li>:hover <input type="date" value="2013-12-11" id="hovered"></li> 9 <li>:hover <input type="date" value="2013-12-11" id="hovered"></li>
10 <li>Disabled <input type="date" disabled> <input type="date" value="2012-10- 05" disabled></li> 10 <li>Disabled <input type="date" disabled> <input type="date" value="2012-10- 05" disabled></li>
11 <li>Read-only <input type="date" readonly> <input type="date" value="2012-10 -05" readonly></li> 11 <li>Read-only <input type="date" readonly> <input type="date" value="2012-10 -05" readonly></li>
12 <li>RTL <input type="date" value="2012-10-05" dir="rtl"></li> 12 <li>RTL <input type="date" value="2012-10-05" dir="rtl"></li>
13 <li>With max <input type="date" max="0099-12-31"> <input type="date" value=" 2012-10-05" max="99999-12-31"></li> 13 <li>With max <input type="date" max="0099-12-31"> <input type="date" value=" 2012-10-05" max="99999-12-31"></li>
14 </ul> 14 </ul>
(...skipping 16 matching lines...) Expand all
31 <li>padding: <input type="date" value="2012-10-15" style="padding: 20px"></l i> 31 <li>padding: <input type="date" value="2012-10-15" style="padding: 20px"></l i>
32 </ul> 32 </ul>
33 <script> 33 <script>
34 var input = document.getElementById('hovered'); 34 var input = document.getElementById('hovered');
35 if (window.eventSender) 35 if (window.eventSender)
36 eventSender.mouseMoveTo(input.offsetLeft + input.offsetWidth / 2, input.offs etTop + input.offsetHeight / 2); 36 eventSender.mouseMoveTo(input.offsetLeft + input.offsetWidth / 2, input.offs etTop + input.offsetHeight / 2);
37 document.querySelector('input[autofocus]').focus(); 37 document.querySelector('input[autofocus]').focus();
38 </script> 38 </script>
39 </body> 39 </body>
40 </html> 40 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698