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

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

Issue 9549030: Fix testTimezoneIsEditable (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 10 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/chromeos_time.py
===================================================================
--- chrome/test/functional/chromeos_time.py (revision 124003)
+++ chrome/test/functional/chromeos_time.py (working copy)
@@ -45,20 +45,20 @@
"""
self.NavigateToURL('chrome://settings/system')
ret = self.ExecuteJavascript("""
- var enabled = false;
+ var disabled = true;
var timezone = document.getElementById('timezone-select');
if (timezone)
- enabled = banner.enabled;
- domAutomationController.send(enabled.toString());
+ disabled = timezone.disabled;
+ domAutomationController.send(disabled.toString());
""")
- return ret == 'true'
+ return ret == 'false'
def testTimezoneIsEditable(self):
"""Test that the timezone is always editable."""
# This test only makes sense if we are not running as the owner.
self.assertFalse(self.GetLoginInfo()['is_owner'])
- enabled = _IsTimezoneEditable()
- self.assertTrue(enabled, msg='Timezone is not editable when not owner.')
+ editable = self._IsTimezoneEditable()
+ self.assertTrue(editable, msg='Timezone is not editable when not owner.')
if __name__ == '__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