| Index: third_party/WebKit/LayoutTests/imported/wpt/html/browsers/browsing-the-web/unloading-documents/support/003-1.html
|
| diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/browsers/browsing-the-web/unloading-documents/support/003-1.html b/third_party/WebKit/LayoutTests/imported/wpt/html/browsers/browsing-the-web/unloading-documents/support/003-1.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..b3a4754b851eaf1aec16c21f0ea3a2ba1f6604f2
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/imported/wpt/html/browsers/browsing-the-web/unloading-documents/support/003-1.html
|
| @@ -0,0 +1,23 @@
|
| +<!DOCTYPE HTML>
|
| +<script>
|
| + var t = opener.t;
|
| + var do_test = t.step_func(function() {
|
| + localStorage.test6564729 += '1';
|
| + var d = document;
|
| + var e = document.open(); // has no effect (ignore-opens-during-unload > 0 because we're in beforeunload)
|
| + localStorage.test6564729 += (e == d) ? '2' : 'A [' + e + '] ';
|
| + document.write('FAIL - document.write executed and blocked navigation!'); // has no effect (ignore-opens-during-unload > 0)
|
| + localStorage.test6564729 += document.body.textContent.match('FAIL') ? 'B' : '3';
|
| + document.close(); // has no effect (no script-created parser)
|
| + localStorage.test6564729 += '4';
|
| + })
|
| +
|
| + onload=t.step_func(function() {localStorage.test6564729 = '0'; setTimeout(t.step_func(function() {document.links[0].click()}), 100)})
|
| +
|
| +</script>
|
| +<body
|
| + onbeforeunload="do_test()"
|
| + onpagehide="localStorage.test6564729 += '6'"
|
| + onunload="localStorage.test6564729 += '7'">
|
| +<p><a href="003a.html">Follow this link to run the test.</a>
|
| +<p><iframe src="003b.html"></iframe>
|
|
|