diff options
Diffstat (limited to 'chrome/test/functional')
-rw-r--r-- | chrome/test/functional/PYAUTO_TESTS | 1 | ||||
-rw-r--r-- | chrome/test/functional/chromeos_update.py | 30 |
2 files changed, 31 insertions, 0 deletions
diff --git a/chrome/test/functional/PYAUTO_TESTS b/chrome/test/functional/PYAUTO_TESTS index 5fbfbfe..c88733b 100644 --- a/chrome/test/functional/PYAUTO_TESTS +++ b/chrome/test/functional/PYAUTO_TESTS @@ -176,6 +176,7 @@ 'chromeos': [ 'chromeos_basic', 'chromeos_power', + 'chromeos_update', 'chromeos_wifi', '-chromeos_basic.ChromeosBasic.testScreenLocker', diff --git a/chrome/test/functional/chromeos_update.py b/chrome/test/functional/chromeos_update.py new file mode 100644 index 0000000..f1d1147 --- /dev/null +++ b/chrome/test/functional/chromeos_update.py @@ -0,0 +1,30 @@ +#!/usr/bin/python +# Copyright (c) 2011 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 logging + +import pyauto_functional +import pyauto + + +class ChromeosUpdate(pyauto.PyUITest): + """Tests for ChromeOS updater and channel changer.""" + + def testSetReleaseTrack(self): + """Ensure we can set the device's release track (channel).""" + release_track = self.GetUpdateInfo()['release_track'] + for track in ('dev-channel', 'beta-channel', release_track): + self.SetReleaseTrack(track) + self.assertEqual(self.GetUpdateInfo()['release_track'], track) + + def testGetUpdateInfo(self): + """Get some status info about the updater and release track.""" + result = self.GetUpdateInfo() + self.assertTrue(result) + logging.debug(result) + + +if __name__ == '__main__': + pyauto_functional.Main() |