mirror of
https://github.com/servo/servo.git
synced 2025-10-04 02:29:12 +01:00
18 lines
497 B
HTML
18 lines
497 B
HTML
<!doctype html>
|
|
<title>visibilitychange event bubbles when fired on unload</title>
|
|
<script src="/resources/testharness.js"></script>
|
|
<script src="/resources/testharnessreport.js"></script>
|
|
<div id="log"></div>
|
|
<script>
|
|
async_test(function(t) {
|
|
var w = window.open("resources/unload-bubbles.html");
|
|
window.onmessage = t.step_func(function(event) {
|
|
if (event.data === "close") {
|
|
w.close();
|
|
return;
|
|
}
|
|
assert_equals(event.data, "hidden");
|
|
t.done();
|
|
});
|
|
});
|
|
</script>
|