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

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

Issue 10411017: Fix testGuestModeEnabled by adding missing import (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 7 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_device_policy.py
diff --git a/chrome/test/functional/chromeos_device_policy.py b/chrome/test/functional/chromeos_device_policy.py
index cdeb1271384c8b6c1e45ac2a23db3c505825dfbc..79f551c91ed26b5a19f080bd90dad1965430b4f6 100644
--- a/chrome/test/functional/chromeos_device_policy.py
+++ b/chrome/test/functional/chromeos_device_policy.py
@@ -2,6 +2,8 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+import logging
+
import pyauto_functional # Must come before pyauto (and thus, policy_base).
import policy_base
@@ -68,7 +70,7 @@ class ChromeosDevicePolicy(policy_base.PolicyTestBase):
"""window.domAutomationController.send(
!document.getElementById('guestSignin').hidden);""")
- def _CheckGuestModeVailableInAccountPicker(self):
+ def _CheckGuestModeAvailableInAccountPicker(self):
return self.ExecuteJavascriptInOOBEWebUI(
"""window.domAutomationController.send(
!!document.getElementById('pod-row').getPodWithUsername_(''));
@@ -98,13 +100,13 @@ class ChromeosDevicePolicy(policy_base.PolicyTestBase):
self.Logout()
self._SetDevicePolicyAndOwner({'guest_mode_enabled': True})
- self.assertTrue(self._CheckGuestModeVailableInAccountPicker(),
+ self.assertTrue(self._CheckGuestModeAvailableInAccountPicker(),
msg='Expected guest mode to be available.')
self.Login(as_guest=True)
self.Logout()
self._SetDevicePolicyAndOwner({'guest_mode_enabled': False})
- self.assertFalse(self._CheckGuestModeVailableInAccountPicker(),
+ self.assertFalse(self._CheckGuestModeAvailableInAccountPicker(),
msg='Expected guest mode to not be available.')
« 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