| Index: third_party/WebKit/LayoutTests/external/wpt/html/browsers/browsing-the-web/navigating-across-documents/navigation-unload-form-submit.html
|
| diff --git a/third_party/WebKit/LayoutTests/external/wpt/html/browsers/browsing-the-web/navigating-across-documents/navigation-unload-form-submit.html b/third_party/WebKit/LayoutTests/external/wpt/html/browsers/browsing-the-web/navigating-across-documents/navigation-unload-form-submit.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..029170d46a5f8ad614fb6c2f63a2737bc55d9f87
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/external/wpt/html/browsers/browsing-the-web/navigating-across-documents/navigation-unload-form-submit.html
|
| @@ -0,0 +1,24 @@
|
| +<!DOCTYPE html>
|
| +<meta charset="utf-8">
|
| +<script src="/resources/testharness.js"></script>
|
| +<script src="/resources/testharnessreport.js"></script>
|
| +<link rel="help" href="https://html.spec.whatwg.org/multipage/browsers.html#navigating-across-documents">
|
| +<link rel="author" title="Domenic Denicola" href="mailto:d@domenic.me">
|
| +
|
| +<iframe id="i" src="navigation-unload-form-submit-1.html"></iframe>
|
| +
|
| +<!-- derived from https://bugzilla.mozilla.org/show_bug.cgi?id=247660#c0 -->
|
| +
|
| +<script>
|
| +var test = async_test('Tests that navigation during an unload caused by a form submit does nothing');
|
| +window.onload = test.step_func(function() {
|
| + var i = document.querySelector('#i');
|
| +
|
| + window.finishedLoading = test.step_func_done(function () {
|
| + assert_equals(i.contentWindow.location.pathname.split('/').pop(), 'navigation-unload-form-submit-2.html');
|
| + assert_equals(i.contentWindow.location.hash, '');
|
| + });
|
| +
|
| + i.contentWindow.document.querySelector('input[type="submit"]').click();
|
| +});
|
| +</script>
|
|
|