Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(700)

Unified Diff: tools/gpu/gpu_tools/multi_page_benchmark_unittest.py

Issue 10916227: More polish in prep for CrOS support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: for landing Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/gpu/gpu_tools/multi_page_benchmark.py ('k') | tools/gpu/gpu_tools/scroll.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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))
« no previous file with comments | « tools/gpu/gpu_tools/multi_page_benchmark.py ('k') | tools/gpu/gpu_tools/scroll.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698