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

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

Issue 1123843002: Disable failing perf unit tests on chromeos. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 7 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 telemetry.core import wpr_modes 5 from telemetry.core import wpr_modes
6 from telemetry import decorators 6 from telemetry import decorators
7 from telemetry.page import page as page_module 7 from telemetry.page import page as page_module
8 from telemetry.unittest_util import options_for_unittests 8 from telemetry.unittest_util import options_for_unittests
9 from telemetry.unittest_util import page_test_test_case 9 from telemetry.unittest_util import page_test_test_case
10 10
(...skipping 15 matching lines...) Expand all
26 26
27 Runs repaint measurement on a simple page and verifies 27 Runs repaint measurement on a simple page and verifies
28 that all metrics were added to the results. The test is purely functional, 28 that all metrics were added to the results. The test is purely functional,
29 i.e. it only checks if the metrics are present and non-zero. 29 i.e. it only checks if the metrics are present and non-zero.
30 """ 30 """
31 31
32 def setUp(self): 32 def setUp(self):
33 self._options = options_for_unittests.GetCopy() 33 self._options = options_for_unittests.GetCopy()
34 self._options.browser_options.wpr_mode = wpr_modes.WPR_OFF 34 self._options.browser_options.wpr_mode = wpr_modes.WPR_OFF
35 35
36 @decorators.Disabled('chromeos') # crbug.com/483212
36 def testRepaint(self): 37 def testRepaint(self):
37 ps = self.CreateEmptyPageSet() 38 ps = self.CreateEmptyPageSet()
38 ps.AddUserStory(TestRepaintPage(ps, ps.base_dir)) 39 ps.AddUserStory(TestRepaintPage(ps, ps.base_dir))
39 measurement = repaint.Repaint() 40 measurement = repaint.Repaint()
40 results = self.RunMeasurement(measurement, ps, options=self._options) 41 results = self.RunMeasurement(measurement, ps, options=self._options)
41 self.assertEquals(0, len(results.failures)) 42 self.assertEquals(0, len(results.failures))
42 43
43 frame_times = results.FindAllPageSpecificValuesNamed('frame_times') 44 frame_times = results.FindAllPageSpecificValuesNamed('frame_times')
44 self.assertEquals(len(frame_times), 1) 45 self.assertEquals(len(frame_times), 1)
45 self.assertGreater(frame_times[0].GetRepresentativeNumber(), 0) 46 self.assertGreater(frame_times[0].GetRepresentativeNumber(), 0)
46 47
47 mean_frame_time = results.FindAllPageSpecificValuesNamed('mean_frame_time') 48 mean_frame_time = results.FindAllPageSpecificValuesNamed('mean_frame_time')
48 self.assertEquals(len(mean_frame_time), 1) 49 self.assertEquals(len(mean_frame_time), 1)
49 self.assertGreater(mean_frame_time[0].GetRepresentativeNumber(), 0) 50 self.assertGreater(mean_frame_time[0].GetRepresentativeNumber(), 0)
50 51
51 frame_time_discrepancy = results.FindAllPageSpecificValuesNamed( 52 frame_time_discrepancy = results.FindAllPageSpecificValuesNamed(
52 'frame_time_discrepancy') 53 'frame_time_discrepancy')
53 self.assertEquals(len(frame_time_discrepancy), 1) 54 self.assertEquals(len(frame_time_discrepancy), 1)
54 self.assertGreater(frame_time_discrepancy[0].GetRepresentativeNumber(), 0) 55 self.assertGreater(frame_time_discrepancy[0].GetRepresentativeNumber(), 0)
55 56
56 percentage_smooth = results.FindAllPageSpecificValuesNamed( 57 percentage_smooth = results.FindAllPageSpecificValuesNamed(
57 'percentage_smooth') 58 'percentage_smooth')
58 self.assertEquals(len(percentage_smooth), 1) 59 self.assertEquals(len(percentage_smooth), 1)
59 self.assertGreaterEqual(percentage_smooth[0].GetRepresentativeNumber(), 0) 60 self.assertGreaterEqual(percentage_smooth[0].GetRepresentativeNumber(), 0)
60 61
61 @decorators.Disabled('android') 62 @decorators.Disabled('android')
62 def testCleanUpTrace(self): 63 def testCleanUpTrace(self):
63 self.TestTracingCleanedUp(repaint.Repaint, self._options) 64 self.TestTracingCleanedUp(repaint.Repaint, self._options)
OLDNEW
« no previous file with comments | « tools/perf/measurements/blink_style_unittest.py ('k') | tools/perf/measurements/smoothness_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698