https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 2844c3745a2e52eebd3620ea0a4ab9991ce17d5c authored by James Graham on 15 April 2018, 09:22:37 UTC
Fix prefs getter call in wptrunner Firefox executor
Tip revision: 2844c37
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