| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 import logging | 5 import logging |
| 6 import os | 6 import os |
| 7 import unittest | 7 import unittest |
| 8 | 8 |
| 9 from telemetry import test | 9 from telemetry import test |
| 10 from telemetry.core import discover | 10 from telemetry.core import discover |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 class SinglePageBenchmark(benchmark): # pylint: disable=W0232 | 49 class SinglePageBenchmark(benchmark): # pylint: disable=W0232 |
| 50 def CreatePageSet(self, options): | 50 def CreatePageSet(self, options): |
| 51 # pylint: disable=E1002 | 51 # pylint: disable=E1002 |
| 52 ps = super(SinglePageBenchmark, self).CreatePageSet(options) | 52 ps = super(SinglePageBenchmark, self).CreatePageSet(options) |
| 53 ps.pages = ps.pages[:1] | 53 ps.pages = ps.pages[:1] |
| 54 return ps | 54 return ps |
| 55 | 55 |
| 56 logging.info('running: %s', benchmark) | 56 logging.info('running: %s', benchmark) |
| 57 options = options_for_unittests.GetCopy() | 57 options = options_for_unittests.GetCopy() |
| 58 options.output_format = 'none' | 58 options.output_format = 'none' |
| 59 self.assertEqual(0, SinglePageBenchmark().Run(options)) | 59 self.assertEqual(0, SinglePageBenchmark().Run(options), |
| 60 msg='Failed: %s' % benchmark) |
| OLD | NEW |