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

Unified Diff: chrome/test/functional/fullscreen_mouselock.py

Issue 10642003: Add a partial test to verify mouse lock is independent of the exit bubble. (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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/functional/fullscreen_mouselock.py
diff --git a/chrome/test/functional/fullscreen_mouselock.py b/chrome/test/functional/fullscreen_mouselock.py
index beb6a4933dce9337ce62197959338429593f85dd..2efd47207023fbe4cf1dd5637c81aee793c1aeb8 100755
--- a/chrome/test/functional/fullscreen_mouselock.py
+++ b/chrome/test/functional/fullscreen_mouselock.py
@@ -480,6 +480,27 @@ class FullscreenMouselockTest(pyauto.PyUITest):
into tab 1, click on lockMouse1() button, and move the mouse \
cursor on the page in tab 1. Verify mouse movement is smooth.')
+ def MouseEventsIndependentOfExitBubble(self):
+ """Verify mouse events are independent of the exit FS exit bubble for ML.
+
+ Mouse movement events should work immediately when mouse lock is activated.
+ The events should not be blocked waiting for the exit instruction bubble to
+ clear.
+ """
+ self.NavigateToURL(self.GetHttpURLForDataPath(
+ 'fullscreen_mouselock', 'fullscreen_mouselock.html'))
+ # Should not be in fullscreen mode during initial launch.
+ self.assertFalse(self.IsFullscreenForBrowser())
+ self.assertFalse(self.IsFullscreenForTab())
+ # Go into fullscreen mode.
+ self._driver.find_element_by_id('enterFullscreen').click()
+ self.assertTrue(self.WaitUntil(self.IsFullscreenForTab))
+ self._EnableMouseLockMode()
+ raw_input(
+ '1. Move the mouse, see movement data being received by the page.\
+ 2. Press ESC key.\
+ 3. Lock the mouse without going fullscreen. Click lockMouse1() button.\
+ Verify: The mouse movement events should work immediately.')
if __name__ == '__main__':
pyauto_functional.Main()
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698