summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/workers/semantics/navigation/001.html
blob: 658df062458eb21a34e8ca72de1366b37808fa9b (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
<!--

/*
-->
<!doctype html>
<title>navigating</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id=log></div>
<script>
var date;
var newDate;
</script>
<iframe></iframe>
<script>
var iframe = document.querySelector('iframe');
onload = function() {
  iframe.src = "001-1.html?" + Math.random();
};
var start_test = function() {
  window[0].document.links[0].click();
};
var after_load = function() {
  history.back();
  newDate = new Date();
  setTimeout(function() {
    assert_greater_than(Number(date), Number(newDate));
    assert_equals(window[0].document.title, '001-1');
    done();
  }, 2000);
};
</script>
<!--
*/
//-->