pointer-lock-api.html 604 Bytes
Newer Older
1
<!DOCTYPE HTML>
2 3
<html>
<head>
4
<script src="../http/tests/resources/js-test-pre.js"></script>
5 6 7
</head>
<body>
<script>
8 9
    description("Basic API existence test for Pointer Lock.")

10 11 12 13 14 15
    shouldBeDefined("document.onwebkitpointerlockchange");
    shouldBeDefined("document.onwebkitpointerlockerror");
    shouldBeDefined("document.webkitExitPointerLock");
    shouldEvaluateTo("document.webkitPointerLockElement", null);
    element = document.createElement();
    shouldBeDefined("element.webkitRequestPointerLock");
16
</script>
17
<script src="../http/tests/resources/js-test-post.js"></script>
18 19
</body>
</html>