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

Side by Side Diff: trunk/LayoutTests/fast/forms/form-submission-cancelable.html

Issue 202823002: Revert 169304 "id of iframe incorrectly sets window name" (Closed) Base URL: svn://svn.chromium.org/blink/
Patch Set: Created 6 years, 9 months 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="../../resources/js-test.js"></script> 4 <script src="../../resources/js-test.js"></script>
5 </head> 5 </head>
6 <body> 6 <body>
7 <form method="GET" target="target"> 7 <form method="GET" target="target">
8 <input name="query" value="AAA" /> 8 <input name="query" value="AAA" />
9 <input type="submit" id="submitButton"/> 9 <input type="submit" id="submitButton"/>
10 </form> 10 </form>
11 <form method="GET" target="target1"> 11 <form method="GET" target="target1">
12 <input name="query1" value="AAA" /> 12 <input name="query1" value="AAA" />
13 <input type="submit" id="submitButton1"/> 13 <input type="submit" id="submitButton1"/>
14 </form> 14 </form>
15 <iframe id="target" name="target"></iframe> 15 <iframe id="target" ></iframe>
16 <iframe id="target1" name="target1"></iframe> 16 <iframe id="target1" ></iframe>
17 <script> 17 <script>
18 description('Test that form submit within onsubmit event handlers are not delaye d and sends the form data when invoked'); 18 description('Test that form submit within onsubmit event handlers are not delaye d and sends the form data when invoked');
19 var count = 2; 19 var count = 2;
20 document.forms[0].onsubmit = function (event) { 20 document.forms[0].onsubmit = function (event) {
21 document.forms[0].submit(); 21 document.forms[0].submit();
22 document.forms[0].children.query.value = 'BBB'; 22 document.forms[0].children.query.value = 'BBB';
23 return false; 23 return false;
24 } 24 }
25 25
26 document.forms[1].onsubmit = function (event) { 26 document.forms[1].onsubmit = function (event) {
(...skipping 21 matching lines...) Expand all
48 48
49 if (window.testRunner) 49 if (window.testRunner)
50 window.jsTestIsAsync = true; 50 window.jsTestIsAsync = true;
51 </script> 51 </script>
52 </body> 52 </body>
53 </html> 53 </html>
54 54
55 55
56 56
57 57
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698