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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/forms/date/date-reset-value.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 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <body> 2 <body>
3 <!-- Confirm appearance after reset() is same as the initial appearance. --> 3 <!-- Confirm appearance after reset() is same as the initial appearance. -->
4 <form id="form1"> 4 <form id="form1">
5 <input type="date" id="date1"> 5 <input type="date" id="date1">
6 <input type="date" value="2012-10-09" id="date2"> 6 <input type="date" value="2012-10-09" id="date2">
7 </form> 7 </form>
8 <script> 8 <script>
9 if (testRunner) 9 if (window.testRunner)
10 testRunner.waitUntilDone(); 10 testRunner.waitUntilDone();
11 window.onload = function() { 11 window.onload = function() {
12 date1.value = "1999-12-31"; 12 date1.value = "1999-12-31";
13 date2.value = "1999-12-31"; 13 date2.value = "1999-12-31";
14 form1.reset(); 14 form1.reset();
15 if (testRunner) 15 if (window.testRunner)
16 testRunner.notifyDone(); 16 testRunner.notifyDone();
17 }; 17 };
18 </script> 18 </script>
19 </body> 19 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698