Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(34)

Unified Diff: LayoutTests/pointer-lock/pointerlock-then-fullscreen.html

Issue 535313002: Indicate user gesture for mouse down/up while pointer locked. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/pointer-lock/pointerlock-then-fullscreen-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/pointer-lock/pointerlock-then-fullscreen.html
diff --git a/LayoutTests/pointer-lock/pointerlockchange-event-on-lock-lost.html b/LayoutTests/pointer-lock/pointerlock-then-fullscreen.html
similarity index 63%
copy from LayoutTests/pointer-lock/pointerlockchange-event-on-lock-lost.html
copy to LayoutTests/pointer-lock/pointerlock-then-fullscreen.html
index 2f4ff241f5c9b23b3c03ef070f2f0cd5c8bc4f4a..bbefa35d5f4bacc729d30fcc6effd5ad68a61994 100644
--- a/LayoutTests/pointer-lock/pointerlockchange-event-on-lock-lost.html
+++ b/LayoutTests/pointer-lock/pointerlock-then-fullscreen.html
@@ -9,7 +9,7 @@
<div id="target1"></div>
</div>
<script>
- description("Test that pointerlockchange event is dispatched when lock is lost.")
+ description("Test pointerlock then fullscreen.")
window.jsTestIsAsync = true;
shouldBeDefined("window.testRunner");
@@ -23,12 +23,17 @@
},
function () {
shouldBe("document.pointerLockElement", "targetDiv1");
- expectOnlyChangeEvent("Host initiated unlock.");
- testRunner.didLosePointerLock();
- // doNextStep called by event handler.
+ document.body.onmousedown = function () {
+ targetDiv1.webkitRequestFullscreen();
+ }
+ document.onwebkitfullscreenchange = function () {
+ doNextStep();
+ }
+ eventSender.mouseDown();
},
function () {
- shouldBe("document.pointerLockElement", "null");
+ shouldBe("document.pointerLockElement", "targetDiv1");
+ shouldBe("document.webkitFullscreenElement", "targetDiv1");
doNextStep();
},
];
« no previous file with comments | « no previous file | LayoutTests/pointer-lock/pointerlock-then-fullscreen-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698