summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/lifecycle/resources/subframe_worker2.js
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/lifecycle/resources/subframe_worker2.js')
-rw-r--r--testing/web-platform/tests/lifecycle/resources/subframe_worker2.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/testing/web-platform/tests/lifecycle/resources/subframe_worker2.js b/testing/web-platform/tests/lifecycle/resources/subframe_worker2.js
new file mode 100644
index 0000000000..32d2741331
--- /dev/null
+++ b/testing/web-platform/tests/lifecycle/resources/subframe_worker2.js
@@ -0,0 +1,5 @@
+var bc = new BroadcastChannel('subworker_channel');
+
+setInterval(() => {
+ bc.postMessage('subworker2');
+}, 10);