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

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

Issue 187103002: id of iframe incorrectly sets window name (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add back no-referrer-subframe.html 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" ></iframe> 15 <iframe id="target" name="target"></iframe>
16 <iframe id="target1" ></iframe> 16 <iframe id="target1" name="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 20
21 function asyncTest(query) { 21 function asyncTest(query) {
22 if (query === '?query=AAA' || query === '?query1=BBB') { 22 if (query === '?query=AAA' || query === '?query1=BBB') {
23 if (--count == 0) { 23 if (--count == 0) {
24 testPassed('Both query events received, with correct values: AAA and BBB'); 24 testPassed('Both query events received, with correct values: AAA and BBB');
25 finishJSTest(); 25 finishJSTest();
26 } 26 }
(...skipping 29 matching lines...) Expand all
56 56
57 if (window.testRunner) 57 if (window.testRunner)
58 window.jsTestIsAsync = true; 58 window.jsTestIsAsync = true;
59 </script> 59 </script>
60 </body> 60 </body>
61 </html> 61 </html>
62 62
63 63
64 64
65 65
OLDNEW
« no previous file with comments | « LayoutTests/fast/events/popup-when-select-change.html ('k') | LayoutTests/fast/frames/detach-frame-during-focus.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698