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

Unified Diff: chrome/test/data/fullscreen_mouselock/fullscreen_mouselock.html

Issue 10535173: Add three fullscreen tests and three mouse lock tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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 | chrome/test/functional/PYAUTO_TESTS » ('j') | chrome/test/functional/fullscreen_mouselock.py » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/fullscreen_mouselock/fullscreen_mouselock.html
diff --git a/chrome/test/data/fullscreen_mouselock/fullscreen_mouselock.html b/chrome/test/data/fullscreen_mouselock/fullscreen_mouselock.html
index 06d7e76226c2b76979bcc6eed506cb8fc3d12edb..9281d6e817cd2177e34d35f6d0253428025ed244 100644
--- a/chrome/test/data/fullscreen_mouselock/fullscreen_mouselock.html
+++ b/chrome/test/data/fullscreen_mouselock/fullscreen_mouselock.html
@@ -65,11 +65,21 @@ function lockMouse1AndSetLockResult() {
);
}
+// When mouse lock is initiated and accepted, PyAuto test
Nirnimesh 2012/06/18 18:31:59 early line break. Move some text from next line to
dyu1 2012/06/18 22:04:41 Done.
+// will wait for the lock_result to return "success" or "failure" to initiate
+// the next action.
function lockMouse2() {
console.log("lockMouse2()");
navigator.webkitPointer.lock(document.getElementById("lockTarget2"),
- function(){console.log("lock success")},
- function(){console.log("lock failed")});
+ function() {
+ console.log("lock success");
+ lock_result = "success"
+ },
+ function() {
+ console.log("lock failed")
+ lock_result = "failure"
+ }
+ );
}
function delayedLockMouse1() {
@@ -167,6 +177,7 @@ function init() {
}
});
}
+
</script>
</head>
<body onload="init()" title="This tooltip should not be shown if the mouse is locked.">
@@ -184,7 +195,9 @@ function init() {
<div id="lockTarget2">lockTarget2</div>
<form name="HTMLCursor" id="HTMLCursor">HTMLCursor</form>
<form name="displaytext">...</form>
+ <p>The <a href="#anchor" name="anchor" id="anchor">anchor link</a> navigates to
+ an anchor on this page. The browser should not exit tab fullscreen or mouse lock.</p>
</div>
- This text is outside of the container that is made fullscreen. This text should not be visible when fullscreen.
+ <p>This text is outside of the container that is made fullscreen. This text should not be visible when fullscreen.</p>
</body>
</html>
« no previous file with comments | « no previous file | chrome/test/functional/PYAUTO_TESTS » ('j') | chrome/test/functional/fullscreen_mouselock.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698