summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/battery-status/support-window-open.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/battery-status/support-window-open.html')
-rw-r--r--testing/web-platform/tests/battery-status/support-window-open.html10
1 files changed, 10 insertions, 0 deletions
diff --git a/testing/web-platform/tests/battery-status/support-window-open.html b/testing/web-platform/tests/battery-status/support-window-open.html
new file mode 100644
index 000000000..afffc3af2
--- /dev/null
+++ b/testing/web-platform/tests/battery-status/support-window-open.html
@@ -0,0 +1,10 @@
+<!DOCTYPE HTML>
+<meta charset="utf-8">
+<script>
+var data = [
+ navigator === window.opener.navigator,
+ navigator.getBattery() === window.opener.navigator.getBattery(),
+ navigator.getBattery() === navigator.getBattery()
+];
+window.opener.postMessage(data, '*');
+</script>