summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/pointer-lock/pointer-lock-api-prefixed.html
blob: fa8cc96a4f1db5aa27404a76d0fe9335b2187a75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<!DOCTYPE HTML>
<html>
<head>
<script src="../resources/js-test.js"></script>
</head>
<body>
<script>
    description("Basic API existence test for Pointer Lock.")

    shouldBeDefined("document.onwebkitpointerlockchange");
    shouldBeDefined("document.onwebkitpointerlockerror");
    shouldBeDefined("document.webkitExitPointerLock");
    shouldEvaluateTo("document.webkitPointerLockElement", null);
    element = document.createElement('x');
    shouldBeDefined("element.webkitRequestPointerLock");
</script>
</body>
</html>