Commit ae4e5c2b authored by scheib@chromium.org's avatar scheib@chromium.org

Pointer Lock: Change isLocked() from operator to attribute isLocked

https://bugs.webkit.org/show_bug.cgi?id=76311

Reviewed by Adam Barth.

Source/WebCore:

This patch implements the recent Mouse Lock Specification update
changing navigator.pointer.isLocked() to .isLocked.

Test pointer-lock/pointer-lock-api.html updated to new spec.

* page/PointerLock.idl:

LayoutTests:

* pointer-lock/pointer-lock-api-expected.txt:
* pointer-lock/pointer-lock-api.html:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@105011 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 2852e870
2012-01-13 Vincent Scheib <scheib@chromium.org>
Pointer Lock: Change isLocked() from operator to attribute isLocked
https://bugs.webkit.org/show_bug.cgi?id=76311
Reviewed by Adam Barth.
* pointer-lock/pointer-lock-api-expected.txt:
* pointer-lock/pointer-lock-api.html:
2012-01-13 Jochen Eisinger <jochen@chromium.org>
Add a test for cross-origin XMLHttpRequest and CORS (which doesn't work currently)
PASS navigator.webkitPointer is defined.
PASS typeof navigator.webkitPointer.isLocked() is 'boolean'
PASS navigator.webkitPointer.isLocked() is false
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
......
......@@ -6,7 +6,7 @@
<body>
<script>
shouldBeDefined("navigator.webkitPointer");
shouldEvaluateTo("navigator.webkitPointer.isLocked()", false);
shouldEvaluateTo("navigator.webkitPointer.isLocked", false);
shouldThrow("navigator.webkitPointer.lock()", "'TypeError: Not enough arguments'");
shouldEvaluateTo("navigator.webkitPointer.lock(document)", "undefined");
shouldEvaluateTo("navigator.webkitPointer.unlock()", "undefined");
......
2012-01-13 Vincent Scheib <scheib@chromium.org>
Pointer Lock: Change isLocked() from operator to attribute isLocked
https://bugs.webkit.org/show_bug.cgi?id=76311
Reviewed by Adam Barth.
This patch implements the recent Mouse Lock Specification update
changing navigator.pointer.isLocked() to .isLocked.
Test pointer-lock/pointer-lock-api.html updated to new spec.
* page/PointerLock.idl:
2012-01-13 Raymond Toy <rtoy@google.com>
noteOn, noteGrainOn and noteOff idl should take doubles
......@@ -30,7 +30,7 @@ module core {
] PointerLock {
void lock(in Element target, in [Callback, Optional] VoidCallback successCallback, in [Callback, Optional] VoidCallback failureCallback);
void unlock();
boolean isLocked();
readonly attribute boolean isLocked;
};
}
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