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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/forms/form-submission-crash.html

Issue 2416033002: Fixed the behaviour of form submit to match the standard: no submit is taken place when the form is… (Closed)
Patch Set: Modified layout tests for the new behaviour Created 4 years, 2 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/forms/form-submission-crash-successful-submit-button.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <body> 2 <body>
3 <script src="../../resources/js-test.js"></script> 3 <script src="../../resources/js-test.js"></script>
4 <script> 4 <script>
5 jsTestIsAsync = true; 5 jsTestIsAsync = true;
6 var form1; 6 var form1;
7 var submit1; 7 var submit1;
8 8
9 function start() { 9 function start() {
10 form1 = document.createElement('form'); 10 form1 = document.createElement('form');
11 submit1 = document.createElement('input'); 11 submit1 = document.createElement('input');
12 submit1.type = 'submit'; 12 submit1.type = 'submit';
13 form1.addEventListener('submit', handleSubmit, false); 13 form1.addEventListener('submit', handleSubmit, false);
14 form1.action = 'javascript:gc()'; 14 form1.action = 'javascript:gc()';
15 form1.appendChild(submit1); 15 form1.appendChild(submit1);
16 document.body.appendChild(form1);
16 submit1.click(); 17 submit1.click();
17 testPassed('if not crashed.'); 18 testPassed('if not crashed.');
18 finishJSTest(); 19 finishJSTest();
19 } 20 }
20 21
21 function handleSubmit() { 22 function handleSubmit() {
22 form1.removeChild(submit1); 23 form1.removeChild(submit1);
23 form1 = null; 24 form1 = null;
24 } 25 }
25 window.onload = start; 26 window.onload = start;
26 </script> 27 </script>
27 </body> 28 </body>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/forms/form-submission-crash-successful-submit-button.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698