diff options
Diffstat (limited to 'testing/web-platform/tests/wasm/jsapi/functions/resources/relevant/relevant.html')
-rw-r--r-- | testing/web-platform/tests/wasm/jsapi/functions/resources/relevant/relevant.html | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/testing/web-platform/tests/wasm/jsapi/functions/resources/relevant/relevant.html b/testing/web-platform/tests/wasm/jsapi/functions/resources/relevant/relevant.html new file mode 100644 index 0000000000..06df91c237 --- /dev/null +++ b/testing/web-platform/tests/wasm/jsapi/functions/resources/relevant/relevant.html @@ -0,0 +1,14 @@ +<!DOCTYPE html> +<meta charset="utf-8"> +<title>Relevant page used as a test helper</title> + +<script> +// incumbent.html will end up posting a message to here. We need to signal back the "source". + +window.onmessage = e => { + const testId = e.data; + const sourceURL = e.source.document.URL; + + window.dispatchEvent(new CustomEvent("messagereceived", { detail: [testId, sourceURL] })); +}; +</script> |