diff options
Diffstat (limited to 'test/wpt/tests/websockets/multi-globals/url-parsing/incumbent')
-rw-r--r-- | test/wpt/tests/websockets/multi-globals/url-parsing/incumbent/incumbent.html | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/wpt/tests/websockets/multi-globals/url-parsing/incumbent/incumbent.html b/test/wpt/tests/websockets/multi-globals/url-parsing/incumbent/incumbent.html new file mode 100644 index 0000000..2c5572b --- /dev/null +++ b/test/wpt/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> |