summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/browsers/history/the-session-history-of-browsing-contexts/navigation-in-onload.html
blob: 367d7eea3e352de4cc6c26778ffdc3261fbcf43d (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
27
28
29
30
31
32
33
34
35
36
37
<!doctype html>
<meta charset=utf-8>
<title>Navigation in onload handler</title>
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<script>
  var testFiles = [
    "navigation-in-onload_form-submission-1.html",
    "navigation-in-onload_form-submission-iframe.html",
    "navigation-in-onload_form-submission-dynamic-iframe.html"
  ]

  var t = async_test();

  function scheduleNextTest() {
    setTimeout(runNextTest, 0);
  }

  function runNextTest() {
    var file = testFiles.shift();
    if (!file) {
      t.done();
      return;
    }

    window.open(file);
  }

  function verify(actual, expected, desc) {
    setTimeout(t.step_func(function() {
      assert_equals(actual, expected, desc);
    }), 0);
  }

</script>
<body onload="scheduleNextTest();"></body>