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

Side by Side Diff: install_test/protector_updater.py

Issue 10384104: Chrome updater test framework (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/chrome/test/
Patch Set: Created 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « install_test/install_test.py ('k') | pyautolib/fetch_prebuilt_pyauto.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 #!/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
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
5
6 """Runs Protector updater tests using two Chrome builds.
7
8 Test requires two arguments: build url and chrome versions to be used, rest of
9 the arguments are optional. Specified builds are sorted before installation
10 begins, meaning lowest version of Chrome gets installed first and then Chrome
11 is updated using the next, higher version of Chrome. Install and Update, which
12 are both handled by the base class, return a pyauto.PyUITest object. PyUITest
13 object can then be used to run updater tests.
14
15 Example:
16 $ python protector_updater.py --url=<URL> --builds=19.0.1069.0,19.0.1070.0
17 """
18
19 import os
20 import sys
21 import unittest
22
23 from install_test import InstallTest
24 from install_test import Main
25
26
27 class ProtectorUpdater(InstallTest):
28 """Update tests for Protector."""
29
30 def testNoChangeOnCleanProfile(self):
31 """Sample Protector test."""
32 self.assertFalse(self._pyauto.GetProtectorState()['showing_change'])
33 self.UpdateBuild()
34 self.assertFalse(self._pyauto.GetProtectorState()['showing_change'])
35
36
37 if __name__ == '__main__':
38 Main()
OLDNEW
« no previous file with comments | « install_test/install_test.py ('k') | pyautolib/fetch_prebuilt_pyauto.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698