Remove SnowLeopard expected results.
[WebKit-https.git] / LayoutTests / fast / forms / time-multiple-fields / time-multiple-fields-reset-value-after-reload.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../../fast/js/resources/js-test-pre.js"></script>
5 </head>
6 <body onload="runBodyLoaded()">
7 <iframe id=iframe srcdoc="<input type=time id=test1><input type=time id=test2 value=02:02>"></iframe>
8 <script>
9 description('Checks reloading page resets input values');
10 window.jsTestIsAsync = true;
11
12 var iframe = document.getElementById('iframe');
13 var testInput1;
14 var testInput2;
15
16 function runBodyLoaded()
17 {
18     iframe.contentDocument.getElementById('test1').value = '12:34';
19     iframe.contentDocument.getElementById('test2').value = '03:03';
20     iframe.addEventListener("load", function () { parent.runOnIFrameLoad(); });
21     iframe.contentWindow.location.reload();
22 }
23
24 function runOnIFrameLoad()
25 {
26     testInput1 = iframe.contentDocument.getElementById('test1');
27     testInput2 = iframe.contentDocument.getElementById('test2');
28     shouldBeEqualToString('testInput1.value', '');
29     shouldBeEqualToString('testInput2.value', '02:02');
30     iframe.parentNode.removeChild(iframe);
31     finishJSTest();
32 }
33 </script>
34 <script src="../../../fast/js/resources/js-test-post.js"></script>
35 </body>
36 </html>