| OLD | NEW |
| 1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 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 from telemetry.page import profile_creator | 5 from profile_creators import profile_creator |
| 6 | 6 |
| 7 import logging | 7 import logging |
| 8 import page_sets | 8 import page_sets |
| 9 | 9 |
| 10 from telemetry import benchmark | 10 from telemetry import benchmark |
| 11 from telemetry.page import page_test | 11 from telemetry.page import page_test |
| 12 from telemetry.page import test_expectations | 12 from telemetry.page import test_expectations |
| 13 from telemetry.results import results_options | 13 from telemetry.results import results_options |
| 14 from telemetry.user_story import user_story_runner | 14 from telemetry.user_story import user_story_runner |
| 15 | 15 |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 benchmark.BenchmarkMetadata(profile_creator.__class__.__name__), | 62 benchmark.BenchmarkMetadata(profile_creator.__class__.__name__), |
| 63 options) | 63 options) |
| 64 user_story_runner.Run(self._page_test, self._page_test._page_set, | 64 user_story_runner.Run(self._page_test, self._page_test._page_set, |
| 65 expectations, options, results) | 65 expectations, options, results) |
| 66 | 66 |
| 67 if results.failures: | 67 if results.failures: |
| 68 logging.warning('Some pages failed to load.') | 68 logging.warning('Some pages failed to load.') |
| 69 logging.warning('Failed pages:\n%s', | 69 logging.warning('Failed pages:\n%s', |
| 70 '\n'.join(map(str, results.pages_that_failed))) | 70 '\n'.join(map(str, results.pages_that_failed))) |
| 71 raise Exception('SmallProfileCreator failed.') | 71 raise Exception('SmallProfileCreator failed.') |
| OLD | NEW |