OLD | NEW |
1 <p>This test dumps all of the properties that are reachable from the window.Devi
ceMotionEvent window.ondevicemotion, window.DeviceOrientationEvent and window.on
deviceorientation objects, along with their types. | 1 <p>This test dumps all of the properties that are reachable from the window.Devi
ceMotionEvent window.ondevicemotion, window.DeviceOrientationEvent and window.on
deviceorientation objects, along with their types. |
2 These properties are currently guarded by ENABLE_DEVICE_ORIENTATION.</p> | 2 These properties are currently enabled by a runtime flag.</p> |
3 <hr> | 3 <hr> |
4 <pre id="pre"></pre> | 4 <pre id="pre"></pre> |
5 | 5 |
6 <script> | 6 <script> |
7 if (window.testRunner) | 7 if (window.testRunner) |
8 testRunner.dumpAsText(); | 8 testRunner.dumpAsText(); |
9 | 9 |
10 var logBuffer = []; | 10 var logBuffer = []; |
11 function log(s) | 11 function log(s) |
12 { | 12 { |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 logValue(objectName + "." + property); | 88 logValue(objectName + "." + property); |
89 } | 89 } |
90 } | 90 } |
91 | 91 |
92 logValue('window.DeviceMotionEvent'); | 92 logValue('window.DeviceMotionEvent'); |
93 logValue('window.ondevicemotion'); | 93 logValue('window.ondevicemotion'); |
94 logValue('window.DeviceOrientationEvent'); | 94 logValue('window.DeviceOrientationEvent'); |
95 logValue('window.ondeviceorientation'); | 95 logValue('window.ondeviceorientation'); |
96 flushLog(); | 96 flushLog(); |
97 </script> | 97 </script> |
OLD | NEW |