4 <script src="../fast/js/resources/js-test-pre.js"></script>
8 description("Test asynchronous results of calling lock.")
9 window.jsTestIsAsync = true;
10 shouldBeDefined("window.layoutTestController");
13 function doNextStep() {
14 todo[currentStep++]();
18 layoutTestController.setPointerLockWillFailSynchronously();
19 navigator.webkitPointer.lock(document.body,
21 testFailed("Lock succeeded unexpectedly.");
25 testPassed("Lock failed (after we called layoutTestController.setPointerLockWillFailSynchronously)");
30 layoutTestController.setPointerLockWillFailAsynchronously();
31 navigator.webkitPointer.lock(document.body,
33 testFailed("Lock succeeded unexpectedly.");
37 testPassed("Lock failed (after we called layoutTestController.setPointerLockWillFailAsynchronously)");
45 <script src="../fast/js/resources/js-test-post.js"></script>