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

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

Issue 23359003: Eliminate unused PYAUTO tests and TestingAutomationProvider methods (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 4 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/chromeos_oobe.py ('k') | chrome/test/functional/chromeos_txt_msg_functional.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/functional/chromeos_retail_mode.py
diff --git a/chrome/test/functional/chromeos_retail_mode.py b/chrome/test/functional/chromeos_retail_mode.py
deleted file mode 100644
index 133e6625b542f2fc0b04ea546558a696ecaefc2e..0000000000000000000000000000000000000000
--- a/chrome/test/functional/chromeos_retail_mode.py
+++ /dev/null
@@ -1,51 +0,0 @@
-# Copyright (c) 2012 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-import pyauto_functional # Must come before pyauto (and thus, policy_base).
-import policy_base
-
-
-class ChromeosRetailMode(policy_base.PolicyTestBase):
- """Tests for retail mode."""
-
- # The inherited setUp() method fakes enterprise enrollment. Setting the mode
- # to 'kiosk' causes enrollment into retail mode instead of the default
- # enterprise mode.
- mode = 'kiosk'
- machine_id = 'KIOSK'
-
- def ShouldOOBESkipToLogin(self):
- # There's no OOBE to skip.
- return False
-
- def _CheckOnRetailModeLoginScreen(self):
- """Checks that the retail mode login screen is visible."""
- return self.ExecuteJavascriptInOOBEWebUI(
- """window.domAutomationController.send(
- !!document.getElementById('demo-login-text'));
- """)
-
- def Login(self):
- """Login to retail mode by simulating a mouse click."""
- self.ExecuteJavascriptInOOBEWebUI(
- """var event = document.createEvent("MouseEvent");
- event.initMouseEvent('click', true, true, window, 0, 0, 0, 0, 0,
- false, false, false, false, 0, null);
- window.domAutomationController.send(
- document.getElementById('page').dispatchEvent(event));
- """)
-
- def testLogin(self):
- """Tests retail mode login."""
- self.assertTrue(self._CheckOnRetailModeLoginScreen(),
- msg='Expected to be on the retail mode login screen.')
-
- self.Login()
- self.assertTrue(self.GetLoginInfo()['is_logged_in'],
- msg='Expected to be logged in.')
- self.Logout()
-
-
-if __name__ == '__main__':
- pyauto_functional.Main()
« no previous file with comments | « chrome/test/functional/chromeos_oobe.py ('k') | chrome/test/functional/chromeos_txt_msg_functional.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698