| Index: LayoutTests/fast/forms/form-submit-in-image-document.html
|
| diff --git a/LayoutTests/fast/forms/form-submit-in-image-document.html b/LayoutTests/fast/forms/form-submit-in-image-document.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..f57a8e5af0c726b99a48c7834e8afb798a0a85c6
|
| --- /dev/null
|
| +++ b/LayoutTests/fast/forms/form-submit-in-image-document.html
|
| @@ -0,0 +1,26 @@
|
| +<!DOCTYPE html>
|
| +<body>
|
| +<script src="../js/resources/js-test-pre.js"></script>
|
| +
|
| +<iframe src="resources/logo.gif"></iframe>
|
| +
|
| +<script>
|
| +description('Test if Blink does not crash by form submission in a document with null encoding.');
|
| +jsTestIsAsync = true;
|
| +
|
| +function finish() {
|
| + testPassed('if not crashed');
|
| + finishJSTest();
|
| +}
|
| +
|
| +window.onload = function() {
|
| + var doc = document.querySelector('iframe').contentDocument;
|
| + var form = doc.createElement('form');
|
| + form.action = 'javascript:parent.finish()';
|
| + form.innerHTML = '<input type="hidden" name="hidden">';
|
| + doc.body.appendChild(form);
|
| + form.submit();
|
| +};
|
| +</script>
|
| +<script src="../js/resources/js-test-post.js"></script>
|
| +</body>
|
|
|