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="runTest()"> | 6 <body onload="runTest()"> |
7 <p>Test to NOT restore form state to a form with autocomplete=off.</p> | 7 <p>Test to NOT restore form state to a form with autocomplete=off.</p> |
8 <div id="console"></div> | 8 <div id="console"></div> |
9 | 9 |
10 <input id=emptyOnFirstVisit> | 10 <input id=emptyOnFirstVisit> |
11 <div id=parent> | 11 <div id=parent> |
12 <form action="data:text/html,<script>history.back()</script>" id=form1 autoco
mplete=off> | 12 <form action="data:text/html,<script>history.back()</script>" id=form1 autoco
mplete=off> |
13 <input name=user id=input1> | 13 <input name=user id=input1> |
14 <textarea name=comment id=textarea1></textarea> | 14 <textarea name=comment id=textarea1></textarea> |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 debug('Controls in the second form should have edited values:'); | 50 debug('Controls in the second form should have edited values:'); |
51 shouldBe('document.getElementById("input2").value', '"value2"'); | 51 shouldBe('document.getElementById("input2").value', '"value2"'); |
52 shouldBe('document.getElementById("textarea2").value', '"good"'); | 52 shouldBe('document.getElementById("textarea2").value', '"good"'); |
53 shouldBe('document.getElementById("select2").value', '"BSD"'); | 53 shouldBe('document.getElementById("select2").value', '"BSD"'); |
54 if (window.testRunner) | 54 if (window.testRunner) |
55 testRunner.notifyDone(); | 55 testRunner.notifyDone(); |
56 } | 56 } |
57 } | 57 } |
58 </script> | 58 </script> |
59 </body> | 59 </body> |
OLD | NEW |