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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/forms/submit-add-remove-element.html

Issue 1475863005: [Async][WIP] Call FrameLoader::checkCompleted() asynchronously to avoid sync body.onload() Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 10 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
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" id="form" onsubmit="formSubmit();afterSubmit(form);" target=" target"> 7 <form method="GET" id="form" onsubmit="formSubmit();afterSubmit(form);" target=" target">
8 <input type="text" id="textData" name="textData" value="a"> 8 <input type="text" id="textData" name="textData" value="a">
9 <input type="submit" id="submitButton" name="submitform" value="Step"> 9 <input type="submit" id="submitButton" name="submitform" value="Step">
10 </form> 10 </form>
(...skipping 14 matching lines...) Expand all
25 form.appendChild(hidden); 25 form.appendChild(hidden);
26 form.submit(); 26 form.submit();
27 return true; 27 return true;
28 } 28 }
29 29
30 function afterSubmit(form) 30 function afterSubmit(form)
31 { 31 {
32 form.removeChild(hidden); 32 form.removeChild(hidden);
33 } 33 }
34 34
35 document.getElementById('target').onload = function(event) {
36 shouldBeEqualToString('event.target.contentWindow.location.search', '?textDa ta=b&submitform=Step');
37 finishJSTest();
38 }
39
40 window.onload = function() { 35 window.onload = function() {
36 document.getElementById('target').onload = function(event) {
37 shouldBeEqualToString('event.target.contentWindow.location.search', '?te xtData=b&submitform=Step');
38 finishJSTest();
39 }
41 document.getElementById('submitButton').click(); 40 document.getElementById('submitButton').click();
42 } 41 }
43 42
44 if (window.testRunner) 43 if (window.testRunner)
45 window.jsTestIsAsync = true; 44 window.jsTestIsAsync = true;
46 </script> 45 </script>
47 </body> 46 </body>
48 </html> 47 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698