https://github.com/web-platform-tests/wpt
Raw File
Tip revision: dd6fbaac2a7deeea999adeecd4b30a3655f48c7e authored by Yoav Weiss on 19 April 2018, 20:02:31 UTC
[Resource Timing] Align TAO parsing to spec
Tip revision: dd6fbaa
unload.html
<!doctype html>
<title>visibilitychange fires 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("unload-1.html");
  window.onmessage = t.step_func(function(event) {
    if (event.data === "close") {
      w.close();
      return;
    }
    assert_equals(event.data, "hidden");
    t.done();
  });
});
</script>
back to top