summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/websockets/multi-globals/url-parsing/incumbent/incumbent.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/websockets/multi-globals/url-parsing/incumbent/incumbent.html')
-rw-r--r--testing/web-platform/tests/websockets/multi-globals/url-parsing/incumbent/incumbent.html13
1 files changed, 13 insertions, 0 deletions
diff --git a/testing/web-platform/tests/websockets/multi-globals/url-parsing/incumbent/incumbent.html b/testing/web-platform/tests/websockets/multi-globals/url-parsing/incumbent/incumbent.html
new file mode 100644
index 0000000000..2c5572b774
--- /dev/null
+++ b/testing/web-platform/tests/websockets/multi-globals/url-parsing/incumbent/incumbent.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<title>Incumbent page used as a test helper</title>
+
+<iframe src="../current/current.html" id="current"></iframe>
+
+<script>
+ const current = document.querySelector("#current").contentWindow;
+
+ window.hello = () => {
+ window.ws = new current.WebSocket('foo');
+ ws.close();
+ };
+</script>