Update web-platform-tests to revision 5a754b40cd49c0404863c431b58cc311dc5d167c

This commit is contained in:
Ms2ger 2015-11-17 09:56:30 +01:00
parent 8950345e0e
commit 32efe41299
107 changed files with 4243 additions and 435 deletions

View file

@ -1,5 +1,6 @@
<!doctype html>
<script>
onload = function() {opener.postMessage("loaded", "*")};
onbeforeunload = function() {
opener.callback();
}

View file

@ -6,8 +6,11 @@
<script>
var t = async_test();
var w = window.open("close_beforeunload-1.html");
setTimeout(function() {
onmessage = t.step_func(function(event) {
if (event.data != "loaded") {
return;
}
w.close();
}, 1000);
});
callback = function() {t.done()}
</script>

View file

@ -1,5 +1,6 @@
<!doctype html>
<script>
onload = function() {opener.postMessage("loaded", "*")};
onunload = function() {
opener.callback();
}

View file

@ -6,8 +6,11 @@
<script>
var t = async_test();
var w = window.open("close_unload-1.html");
setTimeout(function() {
onmessage = t.step_func(function(event) {
if (event.data != "loaded") {
return;
}
w.close();
}, 1000);
});
callback = function() {t.done()}
</script>