Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(272)

Side by Side Diff: LayoutTests/fast/forms/state-restore-to-non-autocomplete-form.html

Issue 58533003: Move fast/js/resources files to resources. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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()&lt;/script>" id=form1 autoco mplete=off> 12 <form action="data:text/html,<script>history.back()&lt;/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
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>
OLDNEW
« no previous file with comments | « LayoutTests/fast/forms/state-restore-hidden.html ('k') | LayoutTests/fast/forms/state-restore-to-non-edited-controls.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698