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

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

Issue 337603005: Rename telemetry.test.Test to telemetry.benchmark.Benchmark. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 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 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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 4
5 from measurements import repaint 5 from measurements import repaint
6 from telemetry import test
7 from telemetry.core import wpr_modes 6 from telemetry.core import wpr_modes
8 from telemetry.page import page_measurement_unittest_base 7 from telemetry.page import page_measurement_unittest_base
9 from telemetry.page import page as page_module 8 from telemetry.page import page as page_module
10 # pylint: disable=W0401,W0614 9 # pylint: disable=W0401,W0614
11 from telemetry.page.actions.all_page_actions import * 10 from telemetry.page.actions.all_page_actions import *
12 from telemetry.unittest import options_for_unittests 11 from telemetry.unittest import options_for_unittests
12 from telemetry.unittest import test
13 13
14 14
15 class TestRepaintPage(page_module.Page): 15 class TestRepaintPage(page_module.Page):
16 def __init__(self, page_set, base_dir): 16 def __init__(self, page_set, base_dir):
17 super(TestRepaintPage, self).__init__('file://blank.html', 17 super(TestRepaintPage, self).__init__('file://blank.html',
18 page_set, base_dir) 18 page_set, base_dir)
19 19
20 def RunRepaint(self, action_runner): 20 def RunRepaint(self, action_runner):
21 action_runner.RepaintContinuously(seconds=2) 21 action_runner.RepaintContinuously(seconds=2)
22 22
(...skipping 30 matching lines...) Expand all
53 self.assertEquals(len(jank), 1) 53 self.assertEquals(len(jank), 1)
54 self.assertGreater(jank[0].GetRepresentativeNumber(), 0) 54 self.assertGreater(jank[0].GetRepresentativeNumber(), 0)
55 55
56 mostly_smooth = results.FindAllPageSpecificValuesNamed('mostly_smooth') 56 mostly_smooth = results.FindAllPageSpecificValuesNamed('mostly_smooth')
57 self.assertEquals(len(mostly_smooth), 1) 57 self.assertEquals(len(mostly_smooth), 1)
58 self.assertGreaterEqual(mostly_smooth[0].GetRepresentativeNumber(), 0) 58 self.assertGreaterEqual(mostly_smooth[0].GetRepresentativeNumber(), 0)
59 59
60 @test.Disabled('android') 60 @test.Disabled('android')
61 def testCleanUpTrace(self): 61 def testCleanUpTrace(self):
62 self.TestTracingCleanedUp(repaint.Repaint, self._options) 62 self.TestTracingCleanedUp(repaint.Repaint, self._options)
OLDNEW
« no previous file with comments | « tools/perf/measurements/record_per_area_unittest.py ('k') | tools/perf/measurements/screenshot_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698