Bug 1880216 - Migrate Fenix docs into Sphinx. r=owlish,geckoview-reviewers,android...
[gecko.git] / dom / events / test / test_disabled_events.html
blobc345208ee7cfc4bd4b908ffab18fb4ea48629e4b
1 <!DOCTYPE HTML>
2 <html>
3 <!--
4 https://bugzilla.mozilla.org/show_bug.cgi?id=1359076
5 -->
6 <head>
7 <title>Test for Bug 675884</title>
8 <script src="/tests/SimpleTest/SimpleTest.js"></script>
9 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
10 </head>
11 <body>
12 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1359076">Mozilla Bug 1359076</a>
13 <p id="display"></p>
14 <div id="content" style="display: none">
16 </div>
17 <pre id="test">
18 <script type="application/javascript">
20 SimpleTest.waitForExplicitFinish();
22 SpecialPowers.pushPrefEnv({"set": [
23 ["device.sensors.orientation.enabled", false],
24 ["device.sensors.motion.enabled", false],
25 ["device.sensors.proximity.enabled", false],
26 ["device.sensors.ambientLight.enabled", false]
27 ]}, () => {
28 is("UserProximityEvent" in window, false, "UserProximityEvent does not exist");
29 is("DeviceLightEvent" in window, false, "DeviceLightEvent does not exist");
30 is("DeviceOrientationEvent" in window, false, "DeviceOrientationEvent does not exist");
31 is("DeviceMotionEvent" in window, false, "DeviceMotionEvent does not exist");
32 is("onuserproximity" in window, false, "onuserproximity does not exist");
33 is("ondevicelight" in window, false, "ondevicelight does not exist");
34 SimpleTest.finish();
35 });
37 </script>
38 </pre>
39 </body>
40 </html>