blob: af10c204e3a459795ced95b17a92caa8d09066c9 [file] [log] [blame]
dino@apple.com5b163b82016-12-08 02:53:41 +00001<!DOCTYPE html>
dino@apple.com5bad0f12016-12-05 23:48:15 +00002<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>
11test(function() {
12 assert_true('exitPointerLock' in Document.prototype);
13},'Document.prototype.exitPointerLock exists');
14
15test(function() {
16 assert_true('pointerLockElement' in Document.prototype);
17},'Document.prototype.pointerLockElement exists');
18
19test(function() {
20 assert_true('onpointerlockchange' in Document.prototype);
21},'Document.prototype.onpointerlockchange exists');
22
23test(function() {
24 assert_true('onpointerlockerror' in Document.prototype);
25},'Document.prototype.onpointerlockerror exists');
26
27test(function() {
28 assert_true('requestPointerLock' in Element.prototype);
29},'Element.prototype.requestPointerLock exists');
30</script>
31</body>
32</html>