dom/power/test/test_bug957899.html

branch
TOR_BUG_3246
changeset 7
129ffea94266
equal deleted inserted replaced
-1:000000000000 0:5aa86f67caf8
1 <!DOCTYPE HTML>
2 <html>
3 <head>
4 <title>Test bug 957899 - Crash in WakeLock</title>
5 <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
6 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
7 </head>
8 <body>
9 <script type="application/javascript">
10 SimpleTest.waitForExplicitFinish();
11 function test() {
12 var wl = navigator.requestWakeLock('a');
13 ok(wl, "WakeLock created!");
14 ok(!(wl instanceof XPathEvaluator), "Crashing?");
15 SimpleTest.finish();
16 }
17 SpecialPowers.pushPrefEnv({"set": [["dom.wakelock.enabled", true]]}, test);
18 </script>
19 </body>
20 </html>

mercurial