Update web-platform-tests to revision dc60bfc45b49e3a5e653320e65b0fd447676b836

This commit is contained in:
WPT Sync Bot 2018-06-04 21:06:39 -04:00
parent 652a177ff5
commit 0bc549be55
690 changed files with 6588 additions and 1564 deletions

View file

@ -1,22 +0,0 @@
<!doctype html>
<title>beforeunload and unload events fire after window.close() in script-closeable browsing context</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id="log"></div>
<script>
beforeunload_fired = false;
var t = async_test();
onload = t.step_func(function() {
window.close();
});
onbeforeunload = t.step_func(function() {
beforeunload_fired = true;
});
onunload = t.step_func(function() {
assert_true(beforeunload_fired);
t.done()
});
</script>

View file

@ -1,10 +0,0 @@
<!doctype html>
script-uncloseable-1
<script>
onbeforeunload = function() {
parent.beforeunload_fired = true;
};
onunload = function() {
parent.unload_fired = true;
};
</script>

View file

@ -1,24 +0,0 @@
<!doctype html>
<title>beforeunload and unload events do not fire after window.close() in script-uncloseable browsing context</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id="log"></div>
<script>
var beforeunload_fired = false;
var unload_fired = false;
var t = async_test();
onload = t.step_func(function() {
var iframe = document.getElementsByTagName("iframe")[0]
iframe.onload = t.step_func(function() {
iframe.contentWindow.close()
t.step_timeout(function() {
assert_false(beforeunload_fired);
assert_false(unload_fired);
t.done();
}, 1000);
});
iframe.src = "prompt-and-unload-script-uncloseable-1.html";
});
</script>
<iframe></iframe>