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

Side by Side Diff: tools/perf/perf_tools/smoothness_benchmark_unittest.py

Issue 12294002: Revert 182991 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 10 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/perf/perf_tools/smoothness_benchmark.py ('k') | tools/perf/perf_tools/spaceport.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 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 from telemetry import multi_page_benchmark_unittest_base
5 from telemetry import page
4 from perf_tools import smoothness_benchmark 6 from perf_tools import smoothness_benchmark
5 from telemetry.page import multi_page_benchmark_unittest_base 7
6 from telemetry.page import page 8 from telemetry.page_benchmark_results import PageBenchmarkResults
7 from telemetry.page.page_benchmark_results import PageBenchmarkResults
8 9
9 class SmoothnessBenchmarkUnitTest( 10 class SmoothnessBenchmarkUnitTest(
10 multi_page_benchmark_unittest_base.MultiPageBenchmarkUnitTestBase): 11 multi_page_benchmark_unittest_base.MultiPageBenchmarkUnitTestBase):
11 12
12 def testFirstPaintTimeMeasurement(self): 13 def testFirstPaintTimeMeasurement(self):
13 ps = self.CreatePageSetFromFileInUnittestDataDir('scrollable_page.html') 14 ps = self.CreatePageSetFromFileInUnittestDataDir('scrollable_page.html')
14 15
15 benchmark = smoothness_benchmark.SmoothnessBenchmark() 16 benchmark = smoothness_benchmark.SmoothnessBenchmark()
16 all_results = self.RunBenchmark(benchmark, ps) 17 all_results = self.RunBenchmark(benchmark, ps)
17 18
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 benchmark = smoothness_benchmark.SmoothnessBenchmark() 90 benchmark = smoothness_benchmark.SmoothnessBenchmark()
90 benchmark.use_gpu_benchmarking_extension = False 91 benchmark.use_gpu_benchmarking_extension = False
91 all_results = self.RunBenchmark(benchmark, ps) 92 all_results = self.RunBenchmark(benchmark, ps)
92 93
93 self.assertEqual(0, len(all_results.page_failures)) 94 self.assertEqual(0, len(all_results.page_failures))
94 self.assertEqual(1, len(all_results.page_results)) 95 self.assertEqual(1, len(all_results.page_results))
95 results0 = all_results.page_results[0] 96 results0 = all_results.page_results[0]
96 97
97 self.assertTrue('dropped_percent' in results0) 98 self.assertTrue('dropped_percent' in results0)
98 self.assertTrue('mean_frame_time' in results0) 99 self.assertTrue('mean_frame_time' in results0)
OLDNEW
« no previous file with comments | « tools/perf/perf_tools/smoothness_benchmark.py ('k') | tools/perf/perf_tools/spaceport.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698