summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/infrastructure/testdriver/actions/crossOrigin.sub.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/infrastructure/testdriver/actions/crossOrigin.sub.html')
-rw-r--r--testing/web-platform/tests/infrastructure/testdriver/actions/crossOrigin.sub.html20
1 files changed, 20 insertions, 0 deletions
diff --git a/testing/web-platform/tests/infrastructure/testdriver/actions/crossOrigin.sub.html b/testing/web-platform/tests/infrastructure/testdriver/actions/crossOrigin.sub.html
new file mode 100644
index 0000000000..38b3610af6
--- /dev/null
+++ b/testing/web-platform/tests/infrastructure/testdriver/actions/crossOrigin.sub.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>Actions in cross-origin iframe</title>
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="/resources/testdriver.js"></script>
+<script src="/resources/testdriver-vendor.js"></script>
+
+<iframe src="https://{{host}}:{{ports[https][1]}}/infrastructure/testdriver/actions/crossOriginChild.html"></iframe>
+
+<script>
+setup({single_test: true});
+addEventListener("message", (msg) => {
+ if (msg.data === "PASS") {
+ done();
+ } else if (msg.data === "FAIL") {
+ assert_unreached("actions failed")
+ }
+});
+</script>