Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 </body> | |
|
iclelland
2016/08/24 15:41:57
Could you put this line below the script (to move
lunalu1
2016/08/25 15:05:34
Done.
| |
| 7 <script> | |
| 8 var f1 = document.forms[0]; | |
| 9 test(function() { | |
| 10 f1.parentNode.removeChild(f1); | |
| 11 f1.submit(); | |
| 12 }, 'Submitting a form that has been removed.'); | |
| 13 | |
| 14 var f2 = document.createElement('form'); | |
| 15 f2.action = "javascript: redirect()"; | |
| 16 test(function() { | |
| 17 f2.submit(); | |
| 18 }, 'Submitting a form that has never been attached to the document.'); | |
| 19 | |
| 20 function redirect() { assert_true(false); } | |
| 21 </script> | |
| OLD | NEW |