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

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

Issue 6760013: GetBatteryInfo() battery automation hook. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 9 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
Index: chrome/test/functional/chromeos_basic.py
diff --git a/chrome/test/functional/chromeos_basic.py b/chrome/test/functional/chromeos_basic.py
index 47c4d5fc11219780ed0b2e75a789daccb9395c6f..ce9f403bd673aa98bddc300ef1a777e44d957ab7 100644
--- a/chrome/test/functional/chromeos_basic.py
+++ b/chrome/test/functional/chromeos_basic.py
@@ -26,6 +26,12 @@ class ChromeosBasic(pyauto.PyUITest):
self.RestartBrowser(clear_profile=False)
self.assertEqual(1, len(self.GetHistoryInfo().History()))
+ def testBatteryInfo(self):
Nirnimesh 2011/03/29 01:29:39 Please move this test to a new script - chromeos_p
dtu 2011/03/29 02:21:22 Done.
+ """Print some information about the battery."""
+ result = self.GetBatteryInfo()
+ self.assertTrue(result)
+ logging.debug(result)
+
def testScreenLocker(self):
"""Sanity check for screen locker functions."""
self.assertFalse(self.GetLoginInfo()['is_screen_locked'])

Powered by Google App Engine
This is Rietveld 408576698