OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../../../fast/js/resources/js-test-pre.js"></script> | 4 <script src="../../../resources/js-test.js"></script> |
5 </head> | 5 </head> |
6 <body onload="runBodyLoaded()"> | 6 <body onload="runBodyLoaded()"> |
7 <iframe id=iframe srcdoc="<input type=datetime-local id='test1'><input type='dat
etime-local' id='test2' value='1234-05-06T07:08'>"></iframe> | 7 <iframe id=iframe srcdoc="<input type=datetime-local id='test1'><input type='dat
etime-local' id='test2' value='1234-05-06T07:08'>"></iframe> |
8 <script> | 8 <script> |
9 description('Checks reloading page resets input values'); | 9 description('Checks reloading page resets input values'); |
10 window.jsTestIsAsync = true; | 10 window.jsTestIsAsync = true; |
11 | 11 |
12 var iframe = document.getElementById('iframe'); | 12 var iframe = document.getElementById('iframe'); |
13 var testInput1; | 13 var testInput1; |
14 var testInput2; | 14 var testInput2; |
(...skipping 17 matching lines...) Expand all Loading... |
32 testInput2 = iframe.contentDocument.getElementById('test2'); | 32 testInput2 = iframe.contentDocument.getElementById('test2'); |
33 debug('Reloaded values:'); | 33 debug('Reloaded values:'); |
34 shouldBeEqualToString('testInput1.value', ''); | 34 shouldBeEqualToString('testInput1.value', ''); |
35 shouldBeEqualToString('testInput2.value', '1234-05-06T07:08'); | 35 shouldBeEqualToString('testInput2.value', '1234-05-06T07:08'); |
36 iframe.parentNode.removeChild(iframe); | 36 iframe.parentNode.removeChild(iframe); |
37 finishJSTest(); | 37 finishJSTest(); |
38 } | 38 } |
39 </script> | 39 </script> |
40 </body> | 40 </body> |
41 </html> | 41 </html> |
OLD | NEW |