| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../../resources/js-test.js"></script> | 4 <script src="../../resources/js-test.js"></script> |
| 5 </head> | 5 </head> |
| 6 <body onload="runTest()"> | 6 <body onload="runTest()"> |
| 7 <p>Test to NOT save state of a detached form control.</p> | 7 <p>Test to NOT save state of a detached form control.</p> |
| 8 <div id="console"></div> | 8 <div id="console"></div> |
| 9 | 9 |
| 10 <input id=emptyOnFirstVisit> | 10 <input id=emptyOnFirstVisit> |
| 11 <form action="data:text/html,<script>history.back()</script>" id=form1> | 11 <form action="../../resources/back.html" id=form1> |
| 12 <input name=user id=input2> | 12 <input name=user id=input2> |
| 13 </form> | 13 </form> |
| 14 | 14 |
| 15 <script> | 15 <script> |
| 16 var i1; | 16 var i1; |
| 17 | 17 |
| 18 function runTest() | 18 function runTest() |
| 19 { | 19 { |
| 20 var form1 = document.getElementById('form1'); | 20 var form1 = document.getElementById('form1'); |
| 21 var state = document.getElementById('emptyOnFirstVisit'); | 21 var state = document.getElementById('emptyOnFirstVisit'); |
| (...skipping 13 matching lines...) Expand all Loading... |
| 35 // Second visit. | 35 // Second visit. |
| 36 shouldBe('document.getElementById("input2").value', '""'); // Not 'value
1'. | 36 shouldBe('document.getElementById("input2").value', '""'); // Not 'value
1'. |
| 37 | 37 |
| 38 if (window.testRunner) | 38 if (window.testRunner) |
| 39 testRunner.notifyDone(); | 39 testRunner.notifyDone(); |
| 40 } | 40 } |
| 41 } | 41 } |
| 42 </script> | 42 </script> |
| 43 </body> | 43 </body> |
| 44 </html> | 44 </html> |
| OLD | NEW |