| <script src="../../../resources/js-test-pre.js"></script> |
| <script src="../resources/common.js"></script> |
| <input id=emptyOnFirstVisit> |
| function makeForms(stage) { |
| document.write('<div id=parent>'); |
| document.write('<form id=form1 action="data:text/html,<script>history.back()</script>">'); |
| document.write('<textarea id=inserted></textarea>'); |
| document.write('<textarea id=saved1></textarea>'); |
| document.write('<textarea id=saved2>aaa
bbb</textarea>'); |
| document.write('</form>'); |
| document.write('</div>'); |
| var state = $('emptyOnFirstVisit'); |
| debug('Confirm nothing is saved and restored:'); |
| shouldBeEqualToString('$("inserted").value', ''); |
| shouldBeEqualToString('$("saved1").value', ''); |
| shouldBeEqualToString('$("saved2").value', 'aaa\nbbb'); |
| $('parent').innerHTML = ''; |
| setTimeout(function() { finishJSTest(); }, 0); |
| <script src="../../../resources/js-test-post.js"></script> |