Wed, 31 Dec 2014 07:16:47 +0100
Revert simplistic fix pending revisit of Mozilla integration attempt.
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>