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

Unified Diff: functional/chromeos_volume.py

Issue 8790013: Adding a test to check default volume (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/chrome/test/
Patch Set: '' Created 9 years 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: functional/chromeos_volume.py
===================================================================
--- functional/chromeos_volume.py (revision 112384)
+++ functional/chromeos_volume.py (working copy)
@@ -18,6 +18,8 @@
lock, logout, etc...
"""
+ DEFAULT_VOLUME = {u'volume': 77.134215500945189, u'is_mute': False}
+
def setUp(self):
# We want a clean session_manager instance for every run,
# so restart session_manager now.
@@ -40,6 +42,14 @@
login_info = self.GetLoginInfo()
self.assertTrue(login_info['is_logged_in'], msg='Login failed.')
+ def testDefaultVolume(self):
+ """Test the default volume settings"""
+ self._Login()
+ volume = self.GetVolumeInfo()
+ self.assertEqual(volume, self.DEFAULT_VOLUME,
+ msg='Volume settings are set to %s, not matching with default '\
+ 'volume settings %s.' % (volume, self.DEFAULT_VOLUME))
+
def testLoginLogoutVolume(self):
"""Test that volume settings are preserved after login and logout"""
before_login = self.GetVolumeInfo()
« 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