summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/browsers/history/the-location-interface/non-automated/reload_in_resize-1.html
blob: 05b44f4c40c685240dd9165aa171d0b849758338 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<!doctype html>
<p>Resize this window. FAIL if the window doesn't close shortly afterwards.</p>
<script>
onload = opener.t.step_func(function() {
  opener.load_count++;
  if (opener.load_count > 1) {
    opener.do_test();
  }
})

onresize = opener.t.step_func(function() {
  opener.flag_resized();
  location.reload();
});
</script>