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

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

Issue 12278015: [Telemetry] Reorganize everything. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Re-add shebangs. 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
6 from perf_tools import smoothness_benchmark 4 from perf_tools import smoothness_benchmark
7 5 from telemetry.page import multi_page_benchmark_unittest_base
8 from telemetry.page_benchmark_results import PageBenchmarkResults 6 from telemetry.page import page
7 from telemetry.page.page_benchmark_results import PageBenchmarkResults
9 8
10 class SmoothnessBenchmarkUnitTest( 9 class SmoothnessBenchmarkUnitTest(
11 multi_page_benchmark_unittest_base.MultiPageBenchmarkUnitTestBase): 10 multi_page_benchmark_unittest_base.MultiPageBenchmarkUnitTestBase):
12 11
13 def testFirstPaintTimeMeasurement(self): 12 def testFirstPaintTimeMeasurement(self):
14 ps = self.CreatePageSetFromFileInUnittestDataDir('scrollable_page.html') 13 ps = self.CreatePageSetFromFileInUnittestDataDir('scrollable_page.html')
15 14
16 benchmark = smoothness_benchmark.SmoothnessBenchmark() 15 benchmark = smoothness_benchmark.SmoothnessBenchmark()
17 all_results = self.RunBenchmark(benchmark, ps) 16 all_results = self.RunBenchmark(benchmark, ps)
18 17
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 benchmark = smoothness_benchmark.SmoothnessBenchmark() 89 benchmark = smoothness_benchmark.SmoothnessBenchmark()
91 benchmark.use_gpu_benchmarking_extension = False 90 benchmark.use_gpu_benchmarking_extension = False
92 all_results = self.RunBenchmark(benchmark, ps) 91 all_results = self.RunBenchmark(benchmark, ps)
93 92
94 self.assertEqual(0, len(all_results.page_failures)) 93 self.assertEqual(0, len(all_results.page_failures))
95 self.assertEqual(1, len(all_results.page_results)) 94 self.assertEqual(1, len(all_results.page_results))
96 results0 = all_results.page_results[0] 95 results0 = all_results.page_results[0]
97 96
98 self.assertTrue('dropped_percent' in results0) 97 self.assertTrue('dropped_percent' in results0)
99 self.assertTrue('mean_frame_time' in results0) 98 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