| Index: tools/gpu/gpu_tools/multi_page_benchmark_unittest.py
|
| diff --git a/tools/gpu/gpu_tools/multi_page_benchmark_unittest.py b/tools/gpu/gpu_tools/multi_page_benchmark_unittest.py
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..b50f26becb3540135f0bee62ab81e20b31ccdc93
|
| --- /dev/null
|
| +++ b/tools/gpu/gpu_tools/multi_page_benchmark_unittest.py
|
| @@ -0,0 +1,17 @@
|
| +# Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
| +# Use of this source code is governed by a BSD-style license that can be
|
| +# found in the LICENSE file.
|
| +import unittest
|
| +
|
| +import multi_page_benchmark
|
| +
|
| +class BenchThatFails(multi_page_benchmark.MultiPageBenchmark):
|
| + def MeasurePage(self, page, tab):
|
| + raise multi_page_benchmark.MeasurementFailure("Whoops")
|
| +
|
| +class MultiPageBenchmarkTest(multi_page_benchmark.MultiPageBenchmarkUnitTest):
|
| + def testFailure(self):
|
| + ps = self.CreatePageSetFromFileInUnittestDataDir('non_scrollable_page.html')
|
| + benchmark = BenchThatFails()
|
| + rows = self.RunBenchmark(benchmark, ps)
|
| + self.assertEquals(1, len(benchmark.page_failures))
|
|
|