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

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

Issue 10540087: Add a mouse lock test to verify bubble clear when tab focus lost. (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 | « chrome/test/functional/PYAUTO_TESTS ('k') | 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 6cc08375db997f1f6ca51c6f938b543dc640541b..beb6a4933dce9337ce62197959338429593f85dd 100755
--- a/chrome/test/functional/fullscreen_mouselock.py
+++ b/chrome/test/functional/fullscreen_mouselock.py
@@ -364,6 +364,17 @@ class FullscreenMouselockTest(pyauto.PyUITest):
self.assertTrue(self.WaitUntil(lambda: not self.IsMouseLocked()),
msg='Mouse lock did not break when page is reloaded.')
+ def testNoMLBubbleWhenTabLoseFocus(self):
+ """Verify mouse lock bubble goes away when tab loses focus."""
+ self.NavigateToURL(self.GetHttpURLForDataPath(
+ 'fullscreen_mouselock', 'fullscreen_mouselock.html'))
+ self._driver.find_element_by_id('lockMouse1').click()
+ self.assertTrue(self.WaitUntil(self.IsMouseLockPermissionRequested))
+ self.AppendTab(pyauto.GURL('chrome://newtab'))
+ self.assertTrue(self.WaitUntil(
+ lambda: not self.IsFullscreenBubbleDisplayingButtons()),
+ msg='Mouse lock bubble did not clear when tab lost focus.')
+
def ExitTabFSToBrowserFS(self):
"""Verify exiting tab fullscreen leaves browser in browser fullscreen.
« no previous file with comments | « chrome/test/functional/PYAUTO_TESTS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698