Remove SnowLeopard expected results.
[WebKit-https.git] / LayoutTests / fast / forms / week-multiple-fields / week-multiple-fields-reset-value-after-reloads.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=week id='test1'><input type='week' id='test2' value='1234-W05'>"></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     testInput1 = iframe.contentDocument.getElementById('test1');
19     testInput2 = iframe.contentDocument.getElementById('test2');
20     debug('Initial values:');
21     shouldBeEqualToString('testInput1.value', '');
22     shouldBeEqualToString('testInput2.value', '1234-W05');
23     testInput1.value = '2012-W10';
24     testInput2.value = '2012-W11';
25     iframe.addEventListener('load', parent.runOnIFrameLoad);
26     iframe.contentWindow.location.reload();
27 }
28
29 function runOnIFrameLoad()
30 {
31     testInput1 = iframe.contentDocument.getElementById('test1');
32     testInput2 = iframe.contentDocument.getElementById('test2');
33     debug('Reloaded values:');
34     shouldBeEqualToString('testInput1.value', '');
35     shouldBeEqualToString('testInput2.value', '1234-W05');
36     iframe.parentNode.removeChild(iframe);
37     finishJSTest();
38 }
39 </script>
40 <script src="../../../fast/js/resources/js-test-post.js"></script>
41 </body>
42 </html>