summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/battery-status/resources/window-postmessage-open-close.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/battery-status/resources/window-postmessage-open-close.html')
-rw-r--r--testing/web-platform/tests/battery-status/resources/window-postmessage-open-close.html9
1 files changed, 9 insertions, 0 deletions
diff --git a/testing/web-platform/tests/battery-status/resources/window-postmessage-open-close.html b/testing/web-platform/tests/battery-status/resources/window-postmessage-open-close.html
new file mode 100644
index 0000000000..3adb8ceecd
--- /dev/null
+++ b/testing/web-platform/tests/battery-status/resources/window-postmessage-open-close.html
@@ -0,0 +1,9 @@
+<!DOCTYPE html>
+<!-- Used when testing access of a closed/detached window's properties -->
+<html>
+<body onunload="opener.postMessage('closed', '*');">
+<script>
+opener.postMessage("opened", "*");
+</script>
+</body>
+</html>