summaryrefslogtreecommitdiffstats
path: root/dom/performance/tests/worker_performance_observer.html
blob: 613762f521d17bfe9669e4b481ce7d61063b75a3 (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
<!--
  Any copyright is dedicated to the Public Domain.
  http://creativecommons.org/publicdomain/zero/1.0/
-->
<!DOCTYPE html>
<meta charset=utf-8>
<html>
<head>
<title>Test for performance observer in worker</title>
</head>
<body>
<div id="log"></div>
<script>
[
 "async_test", "test", "setup",
 "assert_true", "assert_equals", "assert_array_equals",
 "assert_throws", "fetch_tests_from_worker"
].forEach(func => {
  window[func] = opener[func].bind(opener);
});

function done() {
  opener.add_completion_callback(() => {
    self.close();
  });
  opener.done();
}

fetch_tests_from_worker(new Worker("worker_performance_observer.js"));
done();
</script>
</body>