| OLD | NEW |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 """Update tests for themes.""" | 5 """Update tests for themes.""" |
| 6 import os | 6 import os |
| 7 import sys |
| 8 |
| 9 _DIRECTORY = os.path.dirname(os.path.abspath(__file__)) |
| 10 sys.path.append(os.path.join(_DIRECTORY, os.path.pardir, os.path.pardir, |
| 11 os.path.pardir, 'build', 'util', 'lib')) |
| 7 | 12 |
| 8 from common import util | 13 from common import util |
| 9 | 14 |
| 10 import chrome_options | 15 import chrome_options |
| 11 import install_test | 16 import install_test |
| 12 | 17 |
| 13 | 18 |
| 14 class ThemeUpdater(install_test.InstallTest): | 19 class ThemeUpdater(install_test.InstallTest): |
| 15 """Theme update tests.""" | 20 """Theme update tests.""" |
| 16 _DIRECTORY = os.path.dirname(os.path.abspath(__file__)) | 21 _DIRECTORY = os.path.dirname(os.path.abspath(__file__)) |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 | 79 |
| 75 # Relaunch without extension in incognito. | 80 # Relaunch without extension in incognito. |
| 76 self._driver.quit() | 81 self._driver.quit() |
| 77 self._StartChromeProfile(incognito=True) | 82 self._StartChromeProfile(incognito=True) |
| 78 self._CheckThemeApplied() | 83 self._CheckThemeApplied() |
| 79 | 84 |
| 80 # Update and relaunch without extension in incognito. | 85 # Update and relaunch without extension in incognito. |
| 81 self.Install(self.GetUpdateBuilds()[1]) | 86 self.Install(self.GetUpdateBuilds()[1]) |
| 82 self._StartChromeProfile(incognito=True) | 87 self._StartChromeProfile(incognito=True) |
| 83 self._CheckThemeApplied() | 88 self._CheckThemeApplied() |
| OLD | NEW |