summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/workers/semantics/navigation/001-1.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/workers/semantics/navigation/001-1.html')
-rw-r--r--testing/web-platform/tests/workers/semantics/navigation/001-1.html23
1 files changed, 23 insertions, 0 deletions
diff --git a/testing/web-platform/tests/workers/semantics/navigation/001-1.html b/testing/web-platform/tests/workers/semantics/navigation/001-1.html
new file mode 100644
index 000000000..9d7ecee17
--- /dev/null
+++ b/testing/web-platform/tests/workers/semantics/navigation/001-1.html
@@ -0,0 +1,23 @@
+<!--
+setInterval(function() { postMessage(new Date()) }, 10)
+/*
+-->
+<!doctype html>
+<title>001-1</title>
+<script>
+onload = function() {
+ var worker = new Worker('#');
+ worker.onmessage = function(e) {
+ var started = !!parent.date;
+ parent.date = e.data;
+ if (!started) {
+ parent.start_test()
+ }
+ }
+}
+</script>
+<a href='data:text/html,<title>foo</title><script>onload=function(){parent.after_load()}</script>'>link</a>
+<!--
+*/
+//-->
+