| OLD | NEW |
| (Empty) | |
| 1 #!/usr/bin/env python |
| 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 sample updater test 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. Builds must be specified in ascending order, with |
| 10 the lower version first and the higher version last, each separated by commas. |
| 11 The setUp method creates a ChromeDriver instance, which can be used to run |
| 12 tests. ChromeDriver is shutdown, upon completion of the testcase. |
| 13 |
| 14 Example: |
| 15 $ python sample_updater.py --url=<URL> --builds=19.0.1069.0,19.0.1070.0 |
| 16 """ |
| 17 |
| 18 import os |
| 19 import sys |
| 20 import unittest |
| 21 |
| 22 from install_test import InstallTest |
| 23 from install_test import Main |
| 24 |
| 25 |
| 26 class SampleUpdater(InstallTest): |
| 27 """Sample update tests.""" |
| 28 |
| 29 def testCanOpenGoogle(self): |
| 30 """Simple Navigation.""" |
| 31 self._driver.get('http://www.google.com/') |
| 32 self.UpdateBuild() |
| 33 self._driver.get('http://www.google.org/') |
| 34 |
| 35 |
| 36 if __name__ == '__main__': |
| 37 Main() |
| OLD | NEW |