Commit 2f7342e1 authored by scheib@chromium.org's avatar scheib@chromium.org

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
parent 5ecc021c
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.
......@@ -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
......@@ -36,4 +37,5 @@ navigator.userAgent is OK
navigator.vendor is OK
navigator.vendorSub is OK
navigator.webkitGamepads is OK
navigator.webkitPointer is OK
......@@ -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/
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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
PASS mouseEvent.webkitMovementX is defined.
PASS mouseEvent.webkitMovementY is defined.
PASS successfullyParsed is true
TEST COMPLETE
<!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>
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
<!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>
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
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment