Index: third_party/WebKit/LayoutTests/fast/forms/form-removed-from-document.html |
diff --git a/third_party/WebKit/LayoutTests/fast/forms/form-removed-from-document.html b/third_party/WebKit/LayoutTests/fast/forms/form-removed-from-document.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..9f97279a3a8d8ebc60fe7c866e20f17a33c27e7e |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/fast/forms/form-removed-from-document.html |
@@ -0,0 +1,17 @@ |
+<!DOCTYPE html> |
+<script src="../../resources/testharness.js"></script> |
+<script src="../../resources/testharnessreport.js"></script> |
+<body> |
+ <form action="javascript: redirect()"></form> |
+</body> |
+<script> |
+var form = document.forms[0]; |
+ |
+test(function() { |
+ form.parentNode.removeChild(form); |
+ form.submit(); |
+}, 'Submitting a form that has been removed.'); |
+ |
+function redirect() { assert_true(false); } |
+ |
+</script> |