summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/pointer-lock/pointer-lock-api.html
blob: 5fc499d21fdec7d9f7bef4204957fb76c07d37ae (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.onpointerlockchange");
    shouldBeDefined("document.onpointerlockerror");
    shouldBeDefined("document.exitPointerLock");
    shouldEvaluateTo("document.pointerLockElement", null);
    element = document.createElement('x');
    shouldBeDefined("element.requestPointerLock");
</script>
</body>
</html>