OLD | NEW |
1 <!DOCTYPE HTML> | 1 <!DOCTYPE HTML> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../resources/js-test.js"></script> | 4 <script src="../resources/js-test.js"></script> |
5 </head> | 5 </head> |
6 <body> | 6 <body> |
7 <script> | 7 <script> |
8 description("Basic API existence test for Pointer Lock.") | 8 description("Basic API existence test for Pointer Lock.") |
9 | 9 |
10 shouldBeDefined("document.onwebkitpointerlockchange"); | 10 shouldBeDefined("document.onwebkitpointerlockchange"); |
11 shouldBeDefined("document.onwebkitpointerlockerror"); | 11 shouldBeDefined("document.onwebkitpointerlockerror"); |
12 shouldBeDefined("document.webkitExitPointerLock"); | 12 shouldBeDefined("document.webkitExitPointerLock"); |
13 shouldEvaluateTo("document.webkitPointerLockElement", null); | 13 shouldEvaluateTo("document.webkitPointerLockElement", null); |
14 element = document.createElement(); | 14 element = document.createElement('x'); |
15 shouldBeDefined("element.webkitRequestPointerLock"); | 15 shouldBeDefined("element.webkitRequestPointerLock"); |
16 </script> | 16 </script> |
17 </body> | 17 </body> |
18 </html> | 18 </html> |
OLD | NEW |