OLD | NEW |
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 Loading... |
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) |
OLD | NEW |