forked from WebKit/WebKit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpointerlock-interface.html
32 lines (28 loc) · 972 Bytes
/
pointerlock-interface.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<!DOCTYPE html>
<head>
<title>PointerLock interface tests.</title>
<link rel="help" href="https://w3c.github.io/pointerlock/">
<script src="../resources/testharness.js"></script>
<script src="../resources/testharnessreport.js"></script>
</head>
<body>
<div id="log"></div>
<script>
test(function() {
assert_true('exitPointerLock' in Document.prototype);
},'Document.prototype.exitPointerLock exists');
test(function() {
assert_true('pointerLockElement' in Document.prototype);
},'Document.prototype.pointerLockElement exists');
test(function() {
assert_true('onpointerlockchange' in Document.prototype);
},'Document.prototype.onpointerlockchange exists');
test(function() {
assert_true('onpointerlockerror' in Document.prototype);
},'Document.prototype.onpointerlockerror exists');
test(function() {
assert_true('requestPointerLock' in Element.prototype);
},'Element.prototype.requestPointerLock exists');
</script>
</body>
</html>