summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/wasm/serialization/module/resources/echo-iframe.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/wasm/serialization/module/resources/echo-iframe.html')
-rw-r--r--testing/web-platform/tests/wasm/serialization/module/resources/echo-iframe.html11
1 files changed, 11 insertions, 0 deletions
diff --git a/testing/web-platform/tests/wasm/serialization/module/resources/echo-iframe.html b/testing/web-platform/tests/wasm/serialization/module/resources/echo-iframe.html
new file mode 100644
index 0000000000..c4fd5824a1
--- /dev/null
+++ b/testing/web-platform/tests/wasm/serialization/module/resources/echo-iframe.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>A test page that echos back anything postMessaged to it to its parent</title>
+
+<script>
+"use strict";
+
+window.onmessage = ({ data }) => {
+ parent.postMessage(data, "*");
+};
+</script>