| 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 import os | 4 import os |
| 5 import tempfile | 5 import tempfile |
| 6 import unittest | 6 import unittest |
| 7 | 7 |
| 8 from telemetry import browser_finder | 8 from telemetry import browser_finder |
| 9 from telemetry import page as page_module | 9 from telemetry import page as page_module |
| 10 from telemetry import page_set | 10 from telemetry import page_set |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 self.hasRun = True # pylint: disable=W0201 | 132 self.hasRun = True # pylint: disable=W0201 |
| 133 | 133 |
| 134 test = TestUserAgent('RunTest') | 134 test = TestUserAgent('RunTest') |
| 135 with page_runner.PageRunner(ps) as runner: | 135 with page_runner.PageRunner(ps) as runner: |
| 136 options = options_for_unittests.GetCopy() | 136 options = options_for_unittests.GetCopy() |
| 137 possible_browser = browser_finder.FindBrowser(options) | 137 possible_browser = browser_finder.FindBrowser(options) |
| 138 results = page_test.PageTestResults() | 138 results = page_test.PageTestResults() |
| 139 runner.Run(options, possible_browser, test, results) | 139 runner.Run(options, possible_browser, test, results) |
| 140 | 140 |
| 141 self.assertTrue(hasattr(test, 'hasRun') and test.hasRun) | 141 self.assertTrue(hasattr(test, 'hasRun') and test.hasRun) |
| OLD | NEW |