Chromium Code Reviews| Index: install_test/protector_updater.py |
| =================================================================== |
| --- install_test/protector_updater.py (revision 0) |
| +++ install_test/protector_updater.py (revision 0) |
| @@ -0,0 +1,38 @@ |
| +#!/usr/bin/env python |
|
Nirnimesh
2012/08/24 22:51:35
Anantha told me yesterday that she doesn't want to
nkang
2012/08/24 23:00:42
Yes, I did talk to her about it. She wanted me to
|
| +# 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. |
| + |
| +"""Runs Protector updater tests using two Chrome builds. |
| + |
| +Test requires two arguments: build url and chrome versions to be used, rest of |
| +the arguments are optional. Specified builds are sorted before installation |
| +begins, meaning lowest version of Chrome gets installed first and then Chrome |
| +is updated using the next, higher version of Chrome. Install and Update, which |
| +are both handled by the base class, return a pyauto.PyUITest object. PyUITest |
| +object can then be used to run updater tests. |
| + |
| +Example: |
| + $ python protector_updater.py --url=<URL> --builds=19.0.1069.0,19.0.1070.0 |
| +""" |
| + |
| +import os |
| +import sys |
| +import unittest |
| + |
| +from install_test import InstallTest |
| +from install_test import Main |
| + |
| + |
| +class ProtectorUpdater(InstallTest): |
| + """Update tests for Protector.""" |
| + |
| + def testNoChangeOnCleanProfile(self): |
| + """Sample Protector test.""" |
| + self.assertFalse(self._pyauto.GetProtectorState()['showing_change']) |
| + self.UpdateBuild() |
| + self.assertFalse(self._pyauto.GetProtectorState()['showing_change']) |
| + |
| + |
| +if __name__ == '__main__': |
| + Main() |
| Property changes on: install_test\protector_updater.py |
| ___________________________________________________________________ |
| Added: svn:eol-style |
| + LF |