summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/browsers/history/the-location-interface/non-automated/reload_in_resize-manual.html
blob: 1991cee8a1673ec4000e215d03935b5a83b47876 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<!doctype html>
<title>Reload called from resize event</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<p>Resize the popup window. That window should then close and the result be presented here. If that window doesn't close after resize that's a FAIL.</p>
<div id="log"></div>
<script>
setup({timeout:3600000})
var t = async_test(undefined, {timeout:3600000});
var load_count = 0;
var resized = false;
var win = window.open("reload_in_resize-1.html")

flag_resized = t.step_func(function() {
  resized = true;
  setTimeout(do_test, 1000);
});

do_test = t.step_func(function() {
  win.close();
  assert_true(resized, "Resize event happened");
  assert_equals(load_count, 1, "Number of load events");
  t.done();
});
</script>