forked from burg/timelapse
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pointer Lock: Initial Tests for navigator.webkitPonter
https://bugs.webkit.org/show_bug.cgi?id=72659 Reviewed by Darin Fisher. Tools: * DumpRenderTree/chromium/TestShell.cpp: (TestShell::TestShell): Enabling PointerLock in TestShell LayoutTests: * platform/efl/Skipped: * platform/gtk/Skipped: * platform/mac/Skipped: * platform/qt/Skipped: * platform/win/Skipped: * platform/wincairo/Skipped: * pointer-lock/mouse-event-api-expected.txt: * pointer-lock/mouse-event-api.html: * pointer-lock/pointer-lock-api-expected.txt: * pointer-lock/pointer-lock-api.html: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@101025 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
scheib@chromium.org
committed
Nov 22, 2011
1 parent
5ecc021
commit 2f7342e
Showing
14 changed files
with
96 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
PASS mouseEvent.webkitMovementX is defined. | ||
PASS mouseEvent.webkitMovementY is defined. | ||
PASS successfullyParsed is true | ||
|
||
TEST COMPLETE | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> | ||
<html> | ||
<head> | ||
<script src="../fast/js/resources/js-test-pre.js"></script> | ||
</head> | ||
<body> | ||
<script> | ||
var mouseEvent = document.createEvent("MouseEvent"); | ||
shouldBeDefined("mouseEvent.webkitMovementX"); | ||
shouldBeDefined("mouseEvent.webkitMovementY"); | ||
</script> | ||
<script src="../fast/js/resources/js-test-post.js"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
PASS navigator.webkitPointer is defined. | ||
PASS typeof navigator.webkitPointer.isLocked() is 'boolean' | ||
PASS navigator.webkitPointer.isLocked() is false | ||
PASS navigator.webkitPointer.lock() threw exception TypeError: Not enough arguments. | ||
PASS navigator.webkitPointer.lock(document) is undefined | ||
PASS navigator.webkitPointer.unlock() is undefined | ||
PASS successfullyParsed is true | ||
|
||
TEST COMPLETE | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> | ||
<html> | ||
<head> | ||
<script src="../fast/js/resources/js-test-pre.js"></script> | ||
</head> | ||
<body> | ||
<script> | ||
shouldBeDefined("navigator.webkitPointer"); | ||
shouldEvaluateTo("navigator.webkitPointer.isLocked()", false); | ||
shouldThrow("navigator.webkitPointer.lock()", "'TypeError: Not enough arguments'"); | ||
shouldEvaluateTo("navigator.webkitPointer.lock(document)", "undefined"); | ||
shouldEvaluateTo("navigator.webkitPointer.unlock()", "undefined"); | ||
</script> | ||
<script src="../fast/js/resources/js-test-post.js"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters