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

Side by Side Diff: tools/perf/measurements/record_per_area_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 record_per_area 5 from measurements import record_per_area
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
8 from telemetry.unittest import test
9 from telemetry.unittest import options_for_unittests 9 from telemetry.unittest import options_for_unittests
10 10
11 11
12 class RecordPerAreaUnitTest( 12 class RecordPerAreaUnitTest(
13 page_measurement_unittest_base.PageMeasurementUnitTestBase): 13 page_measurement_unittest_base.PageMeasurementUnitTestBase):
14 """Smoke test for record_per_area measurement 14 """Smoke test for record_per_area measurement
15 15
16 Runs record_per_area measurement on a simple page and verifies 16 Runs record_per_area measurement on a simple page and verifies
17 that all metrics were added to the results. The test is purely functional, 17 that all metrics were added to the results. The test is purely functional,
18 i.e. it only checks if the metrics are present and non-zero. 18 i.e. it only checks if the metrics are present and non-zero.
19 """ 19 """
20 20
21 def setUp(self): 21 def setUp(self):
22 self._options = options_for_unittests.GetCopy() 22 self._options = options_for_unittests.GetCopy()
23 self._options.browser_options.wpr_mode = wpr_modes.WPR_OFF 23 self._options.browser_options.wpr_mode = wpr_modes.WPR_OFF
24 24
25 @test.Disabled('android') 25 @test.Disabled('android')
26 def testRecordPerArea(self): 26 def testRecordPerArea(self):
27 ps = self.CreatePageSetFromFileInUnittestDataDir('scrollable_page.html') 27 ps = self.CreatePageSetFromFileInUnittestDataDir('scrollable_page.html')
28 measurement = record_per_area.RecordPerArea() 28 measurement = record_per_area.RecordPerArea()
29 results = self.RunMeasurement(measurement, ps, options=self._options) 29 results = self.RunMeasurement(measurement, ps, options=self._options)
30 self.assertEquals(0, len(results.failures)) 30 self.assertEquals(0, len(results.failures))
OLDNEW
« no previous file with comments | « tools/perf/measurements/rasterize_and_record_micro_unittest.py ('k') | tools/perf/measurements/repaint_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698