summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/infrastructure/channels/child_script.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/infrastructure/channels/child_script.html')
-rw-r--r--testing/web-platform/tests/infrastructure/channels/child_script.html10
1 files changed, 10 insertions, 0 deletions
diff --git a/testing/web-platform/tests/infrastructure/channels/child_script.html b/testing/web-platform/tests/infrastructure/channels/child_script.html
new file mode 100644
index 0000000000..1c10379bde
--- /dev/null
+++ b/testing/web-platform/tests/infrastructure/channels/child_script.html
@@ -0,0 +1,10 @@
+<!doctype html>
+<script src="/resources/channel.sub.js"></script>
+<div id="test">FAIL</div>
+<script>
+(async function() {
+ await new Promise(resolve => onload = resolve);
+ document.getElementById("test").textContent = "PASS";
+ await start_global_channel();
+})()
+</script>