summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/battery-status/support-window-open.html
blob: afffc3af28ebd4f000779091132a781792da02b8 (plain)
1
2
3
4
5
6
7
8
9
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>