dino@apple.com | 5b163b8 | 2016-12-08 02:53:41 +0000 | [diff] [blame] | 1 | <!DOCTYPE html> |
dino@apple.com | 5bad0f1 | 2016-12-05 23:48:15 +0000 | [diff] [blame] | 2 | <head> |
| 3 | <title>PointerLock interface tests.</title> |
| 4 | <link rel="help" href="https://w3c.github.io/pointerlock/"> |
| 5 | <script src="../resources/testharness.js"></script> |
| 6 | <script src="../resources/testharnessreport.js"></script> |
| 7 | </head> |
| 8 | <body> |
| 9 | <div id="log"></div> |
| 10 | <script> |
| 11 | test(function() { |
| 12 | assert_true('exitPointerLock' in Document.prototype); |
| 13 | },'Document.prototype.exitPointerLock exists'); |
| 14 | |
| 15 | test(function() { |
| 16 | assert_true('pointerLockElement' in Document.prototype); |
| 17 | },'Document.prototype.pointerLockElement exists'); |
| 18 | |
| 19 | test(function() { |
| 20 | assert_true('onpointerlockchange' in Document.prototype); |
| 21 | },'Document.prototype.onpointerlockchange exists'); |
| 22 | |
| 23 | test(function() { |
| 24 | assert_true('onpointerlockerror' in Document.prototype); |
| 25 | },'Document.prototype.onpointerlockerror exists'); |
| 26 | |
| 27 | test(function() { |
| 28 | assert_true('requestPointerLock' in Element.prototype); |
| 29 | },'Element.prototype.requestPointerLock exists'); |
| 30 | </script> |
| 31 | </body> |
| 32 | </html> |