Skip to content

Commit

Permalink
Pointer Lock: Initial Tests for navigator.webkitPonter
Browse files Browse the repository at this point in the history
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
Show file tree
Hide file tree
Showing 14 changed files with 96 additions and 0 deletions.
18 changes: 18 additions & 0 deletions LayoutTests/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
2011-11-17 Vincent Scheib <scheib@chromium.org>

Pointer Lock: Initial Tests for navigator.webkitPonter
https://bugs.webkit.org/show_bug.cgi?id=72659

Reviewed by Darin Fisher.

* 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:

2011-11-22 Adam Klein <adamk@chromium.org>

Unreviewed gardening, remove expectations for now-passing tests.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ navigator.userAgent is OK
navigator.vendor is OK
navigator.vendorSub is OK
navigator.webkitGamepads is OK
navigator.webkitPointer is OK
navigator.appCodeName is OK
navigator.appName is OK
navigator.appVersion is OK
Expand All @@ -36,4 +37,5 @@ navigator.userAgent is OK
navigator.vendor is OK
navigator.vendorSub is OK
navigator.webkitGamepads is OK
navigator.webkitPointer is OK

3 changes: 3 additions & 0 deletions LayoutTests/platform/efl/Skipped
Original file line number Diff line number Diff line change
Expand Up @@ -1921,6 +1921,9 @@ http/tests/websocket/tests/hybi/
# Microdata DOM API is not yet enabled.
fast/dom/MicroData

# Pointer Lock is not implemented.
pointer-lock/

# Tests for MediaSource API. Feature is not yet functional.
# https://bugs.webkit.org/show_bug.cgi?id=64731
http/tests/media/media-source/
3 changes: 3 additions & 0 deletions LayoutTests/platform/gtk/Skipped
Original file line number Diff line number Diff line change
Expand Up @@ -1591,6 +1591,9 @@ fast/frames/flattening/iframe-flattening-fixed-width-and-height-no-scrolling.htm
# https://bugs.webkit.org/show_bug.cgi?id=72248
editing/spelling/spelling-unified-emulation.html

# Pointer Lock is not implemented.
pointer-lock/

# fast/dom/Window/window-postmessage-arrays.html fails on JSC platforms
# https://bugs.webkit.org/show_bug.cgi?id=72363
fast/dom/Window/window-postmessage-arrays.html
Expand Down
3 changes: 3 additions & 0 deletions LayoutTests/platform/mac/Skipped
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,9 @@ fast/repaint/table-extra-bottom-grow.html
# DRT doesn't support overridePreference("WebKit*FontMap"...)
fast/text/international/locale-sensitive-fonts.html

# Pointer Lock is not implemented.
pointer-lock/

# https://bugs.webkit.org/show_bug.cgi?id=72435
fast/dom/Window/window-postmessage-arrays.html

Expand Down
3 changes: 3 additions & 0 deletions LayoutTests/platform/qt/Skipped
Original file line number Diff line number Diff line change
Expand Up @@ -2470,6 +2470,9 @@ css3/flexbox/line-wrapping.html
# https://bugs.webkit.org/show_bug.cgi?id=72491
http/tests/misc/onload-remove-iframe-crash-2.html

# Pointer Lock is not implemented.
pointer-lock/

# [Qt] inspector/elements/elements-panel-selection-on-refresh.html crashing
# https://bugs.webkit.org/show_bug.cgi?id=72504
inspector/elements/elements-panel-selection-on-refresh.html
Expand Down
3 changes: 3 additions & 0 deletions LayoutTests/platform/win/Skipped
Original file line number Diff line number Diff line change
Expand Up @@ -1454,6 +1454,9 @@ fast/events/platform-wheelevent-paging-y-in-scrolling-page.html
# DRT doesn't support overridePreference("WebKit*FontMap"...)
fast/text/international/locale-sensitive-fonts.html

# Pointer Lock is not implemented.
pointer-lock/

# https://bugs.webkit.org/show_bug.cgi?id=72435
fast/dom/Window/window-postmessage-arrays.html

Expand Down
3 changes: 3 additions & 0 deletions LayoutTests/platform/wincairo/Skipped
Original file line number Diff line number Diff line change
Expand Up @@ -1967,5 +1967,8 @@ fast/events/platform-wheelevent-paging-y-in-non-scrolling-page.html
fast/events/platform-wheelevent-paging-y-in-scrolling-div.html
fast/events/platform-wheelevent-paging-y-in-scrolling-page.html

# Pointer Lock is not implemented.
pointer-lock/

# DRT doesn't support overridePreference("WebKit*FontMap"...)
fast/text/international/locale-sensitive-fonts.html
6 changes: 6 additions & 0 deletions LayoutTests/pointer-lock/mouse-event-api-expected.txt
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

14 changes: 14 additions & 0 deletions LayoutTests/pointer-lock/mouse-event-api.html
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>
10 changes: 10 additions & 0 deletions LayoutTests/pointer-lock/pointer-lock-api-expected.txt
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

16 changes: 16 additions & 0 deletions LayoutTests/pointer-lock/pointer-lock-api.html
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>
11 changes: 11 additions & 0 deletions Tools/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
2011-11-17 Vincent Scheib <scheib@chromium.org>

Pointer Lock: Initial Tests for navigator.webkitPonter
https://bugs.webkit.org/show_bug.cgi?id=72659

Reviewed by Darin Fisher.

* DumpRenderTree/chromium/TestShell.cpp:
(TestShell::TestShell):
Enabling PointerLock in TestShell

2011-11-22 Ryan Sleevi <rsleevi@chromium.org>

Update flakiness dashboard for new Chromium builders and tests
Expand Down
1 change: 1 addition & 0 deletions Tools/DumpRenderTree/chromium/TestShell.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ TestShell::TestShell(bool testShellMode)
{
WebRuntimeFeatures::enableDataTransferItems(true);
WebRuntimeFeatures::enableGeolocation(true);
WebRuntimeFeatures::enablePointerLock(true);
WebRuntimeFeatures::enableIndexedDatabase(true);
WebRuntimeFeatures::enableFileSystem(true);
WebRuntimeFeatures::enableJavaScriptI18NAPI(true);
Expand Down

0 comments on commit 2f7342e

Please sign in to comment.