<!DOCTYPE HTML> <html> <head> <title>Test for Battery API</title> <script 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"); ok(!("BatteryManager" in window), "BatteryManager should not exist"); </script> </pre> </body> </html>