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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 # found in the LICENSE file.
4 import unittest
5
6 import multi_page_benchmark
7
8 class BenchThatFails(multi_page_benchmark.MultiPageBenchmark):
9 def MeasurePage(self, page, tab):
10 raise multi_page_benchmark.MeasurementFailure("Whoops")
11
12 class MultiPageBenchmarkTest(multi_page_benchmark.MultiPageBenchmarkUnitTest):
13 def testFailure(self):
14 ps = self.CreatePageSetFromFileInUnittestDataDir('non_scrollable_page.html')
15 benchmark = BenchThatFails()
16 rows = self.RunBenchmark(benchmark, ps)
17 self.assertEquals(1, len(benchmark.page_failures))
OLDNEW
« 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