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

Side by Side Diff: tools/perf/measurements/smoothness_unittest.py

Issue 208643007: Add cleanup for measurements that use tracing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 9 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
OLDNEW
1 # Copyright 2013 The Chromium Authors. All rights reserved. 1 # Copyright 2013 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 measurements import smoothness 4 from measurements import smoothness
5 from telemetry.core import wpr_modes 5 from telemetry.core import wpr_modes
6 from telemetry.page import page 6 from telemetry.page import page
7 from telemetry.page import page_measurement_unittest_base 7 from telemetry.page import page_measurement_unittest_base
8 from telemetry.unittest import options_for_unittests 8 from telemetry.unittest import options_for_unittests
9 9
10 class FakePlatform(object): 10 class FakePlatform(object):
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 self.assertEquals(len(mean_mouse_wheel_latency), 1) 92 self.assertEquals(len(mean_mouse_wheel_latency), 1)
93 self.assertGreater( 93 self.assertGreater(
94 mean_mouse_wheel_latency[0].GetRepresentativeNumber(), 0) 94 mean_mouse_wheel_latency[0].GetRepresentativeNumber(), 0)
95 95
96 mean_touch_scroll_latency = results.FindAllPageSpecificValuesNamed( 96 mean_touch_scroll_latency = results.FindAllPageSpecificValuesNamed(
97 'mean_touch_scroll_latency') 97 'mean_touch_scroll_latency')
98 if mean_touch_scroll_latency: 98 if mean_touch_scroll_latency:
99 self.assertEquals(len(mean_touch_scroll_latency), 1) 99 self.assertEquals(len(mean_touch_scroll_latency), 1)
100 self.assertGreater( 100 self.assertGreater(
101 mean_touch_scroll_latency[0].GetRepresentativeNumber(), 0) 101 mean_touch_scroll_latency[0].GetRepresentativeNumber(), 0)
102
103 def testCleanUpTrace(self):
104 self.TestTracingCleanedUp(smoothness.Smoothness, self._options)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698