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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <title>Fullscreen and Mouse Lock Scripts</title> 4 <title>Fullscreen and Mouse Lock Scripts</title>
5 <style type="text/css"> 5 <style type="text/css">
6 #HTMLCursor { 6 #HTMLCursor {
7 border: solid black 1px; 7 border: solid black 1px;
8 background: yellow; 8 background: yellow;
9 display: inline; 9 display: inline;
10 position: absolute; 10 position: absolute;
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 case "1": lockMouse1(); break; 160 case "1": lockMouse1(); break;
161 case "2": lockMouse2(); break; 161 case "2": lockMouse2(); break;
162 case "d": delayedLockMouse1(); break; 162 case "d": delayedLockMouse1(); break;
163 case "u": unlockMouse(); break; 163 case "u": unlockMouse(); break;
164 case "b": enterFullscreenAndLockMouse1(); break; 164 case "b": enterFullscreenAndLockMouse1(); break;
165 case "B": lockMouse1AndEnterFullscreen(); break; 165 case "B": lockMouse1AndEnterFullscreen(); break;
166 default: moveHTMLCursorToCenter(); break; 166 default: moveHTMLCursorToCenter(); break;
167 } 167 }
168 }); 168 });
169 } 169 }
170
171 function goBack() {
scheib 2012/06/14 22:51:12 Init is the last function in this list of function
dyu1 2012/06/15 01:42:24 Done.
172 console.log("goBack()");
173 window.history.back()
174 }
170 </script> 175 </script>
171 </head> 176 </head>
172 <body onload="init()" title="This tooltip should not be shown if the mouse is lo cked."> 177 <body onload="init()" title="This tooltip should not be shown if the mouse is lo cked.">
173 <div id="container"> 178 <div id="container">
179 <p><a href="#anchor" id="anchor">Click</a> to access the go back button.</p>
scheib 2012/06/14 22:51:12 This link doesn't need to link to a header by the
dyu1 2012/06/15 01:42:24 Done.
174 <button id="enterFullscreen" onclick="enterFullscreen();">enterFullscreen() [f]</button><br> 180 <button id="enterFullscreen" onclick="enterFullscreen();">enterFullscreen() [f]</button><br>
175 <button id="exitFullscreen" onclick="exitFullscreen();">exitFullscreen() [x] </button><br> 181 <button id="exitFullscreen" onclick="exitFullscreen();">exitFullscreen() [x] </button><br>
176 <button id="lockMouse1" onclick="lockMouse1();">lockMouse1() [1]</button><br > 182 <button id="lockMouse1" onclick="lockMouse1();">lockMouse1() [1]</button><br >
177 <button id="lockMouse2" onclick="lockMouse2();">lockMouse2() [2]</button><br > 183 <button id="lockMouse2" onclick="lockMouse2();">lockMouse2() [2]</button><br >
178 <button id="delayedLockMouse1" onclick="delayedLockMouse1();">delayedLockMou se1() [d]</button><br> 184 <button id="delayedLockMouse1" onclick="delayedLockMouse1();">delayedLockMou se1() [d]</button><br>
179 <button id="spamLockMouse2" onclick="spamLockMouse2();">spamLockMouse2()</bu tton><br> 185 <button id="spamLockMouse2" onclick="spamLockMouse2();">spamLockMouse2()</bu tton><br>
180 <button id="unlockMouse" onclick="unlockMouse();">unlockMouse() [u]</button> <br> 186 <button id="unlockMouse" onclick="unlockMouse();">unlockMouse() [u]</button> <br>
181 <button id="enterFullscreenAndLockMouse1" onclick="enterFullscreenAndLockMou se1()">enterFullscreenAndLockMouse1() [b]</button><br> 187 <button id="enterFullscreenAndLockMouse1" onclick="enterFullscreenAndLockMou se1()">enterFullscreenAndLockMouse1() [b]</button><br>
182 <button id="lockMouse1AndEnterFullscreen" onclick="lockMouse1AndEnterFullscr een()">lockMouse1AndEnterFullscreen() [B]</button><br> 188 <button id="lockMouse1AndEnterFullscreen" onclick="lockMouse1AndEnterFullscr een()">lockMouse1AndEnterFullscreen() [B]</button><br>
183 <div id="lockTarget1">lockTarget1</div> 189 <div id="lockTarget1">lockTarget1</div>
184 <div id="lockTarget2">lockTarget2</div> 190 <div id="lockTarget2">lockTarget2</div>
185 <form name="HTMLCursor" id="HTMLCursor">HTMLCursor</form> 191 <form name="HTMLCursor" id="HTMLCursor">HTMLCursor</form>
186 <form name="displaytext">...</form> 192 <form name="displaytext">...</form>
193 <h3><a name="anchor">Go Back Button</a></h3>
scheib 2012/06/14 22:51:12 Cut this line.
dyu1 2012/06/15 01:42:24 Done.
194 <button id="goBack" onclick="goBack();">Back</button><br>
scheib 2012/06/14 22:51:12 s/Back/Navigate Back/; for clarity when manually v
dyu1 2012/06/15 01:42:24 Done.
187 </div> 195 </div>
188 This text is outside of the container that is made fullscreen. This text shoul d not be visible when fullscreen. 196 <p>This text is outside of the container that is made fullscreen. This text sh ould not be visible when fullscreen.</p>
189 </body> 197 </body>
190 </html> 198 </html>
OLDNEW
« 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