diff options
Diffstat (limited to 'dom/battery/test/test_battery_unprivileged.html')
-rw-r--r-- | dom/battery/test/test_battery_unprivileged.html | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/dom/battery/test/test_battery_unprivileged.html b/dom/battery/test/test_battery_unprivileged.html new file mode 100644 index 000000000..e56db8ac7 --- /dev/null +++ b/dom/battery/test/test_battery_unprivileged.html @@ -0,0 +1,24 @@ +<!DOCTYPE HTML> +<html> +<head> + <title>Test for Battery API</title> + <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> + <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> +</head> +<body> +<p id="display"></p> +<div id="content" style="display: none"> +</div> +<pre id="test"> +<script type="application/javascript"> + +"use strict"; + +/** Test for Battery API **/ +ok(!("getBattery" in navigator), "navigator.getBattery should not exist for unprivileged web content"); +ok(!("battery" in navigator), "navigator.battery should not exist"); + +</script> +</pre> +</body> +</html> |