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

Unified Diff: tools/perf/perf_tools/smoothness_benchmark_unittest.py

Issue 12207032: [Telemetry] Fix smoothness benchmark unit tests. (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/perf_tools/smoothness_benchmark_unittest.py
diff --git a/tools/perf/perf_tools/smoothness_benchmark_unittest.py b/tools/perf/perf_tools/smoothness_benchmark_unittest.py
index 60b0ded2e52d305b16ec1567a32c72573d836ddf..8bef054cae6fd2a7ed6dc3a43297149560b929dd 100644
--- a/tools/perf/perf_tools/smoothness_benchmark_unittest.py
+++ b/tools/perf/perf_tools/smoothness_benchmark_unittest.py
@@ -44,7 +44,7 @@ class SmoothnessBenchmarkUnitTest(
'numAnimationFrames': 10,
'numFramesSentToScreen': 10}
res = PageBenchmarkResults()
- res.WillMeasurePage(page.Page('http://foo.com/'))
+ res.WillMeasurePage(page.Page('http://foo.com/', None))
smoothness_benchmark.CalcScrollResults(rendering_stats, res)
res.DidMeasurePage()
self.assertEquals(50, res.page_results[0]['dropped_percent'].value)
@@ -66,7 +66,7 @@ class SmoothnessBenchmarkUnitTest(
'totalRasterizeTimeInSeconds': 0,
'totalTimeInSeconds': 1.0}
res = PageBenchmarkResults()
- res.WillMeasurePage(page.Page('http://foo.com/'))
+ res.WillMeasurePage(page.Page('http://foo.com/', None))
smoothness_benchmark.CalcScrollResults(rendering_stats, res)
res.DidMeasurePage()
self.assertEquals(0, res.page_results[0]['dropped_percent'].value)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698