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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/forms/submit-form-not-attached-to-document.html

Issue 2261393002: Fixed the behaviour of form submit to Firefox: form does not submit once it has been removed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Code review change Created 4 years, 3 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
(Empty)
1 <!DOCTYPE html>
2 <script src="../../resources/testharness.js"></script>
3 <script src="../../resources/testharnessreport.js"></script>
4 <body>
5 <form action="javascript: redirect()"></form>
6 <script>
7 var f1 = document.forms[0];
8 test(function() {
9 f1.parentNode.removeChild(f1);
10 f1.submit();
11 }, 'Submitting a form that has been removed.');
12
13 var f2 = document.createElement('form');
14 f2.action = "javascript: redirect()";
15 test(function() {
16 f2.submit();
17 }, 'Submitting a form that has never been attached to the document.');
18
19 function redirect() { assert_true(false); }
tkent 2016/08/25 00:52:54 Use assert_unreached('description').
lunalu1 2016/08/25 15:05:35 Done.
20 </script>
21 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698