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

Side by Side Diff: tools/perf/measurements/rasterize_and_record_micro_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, 6 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 4
5 import logging 5 import logging
6 6
7 from measurements import rasterize_and_record_micro 7 from measurements import rasterize_and_record_micro
8 from telemetry import test
9 from telemetry.core import wpr_modes 8 from telemetry.core import wpr_modes
10 from telemetry.page import page_measurement_unittest_base 9 from telemetry.page import page_measurement_unittest_base
11 from telemetry.page import page_test 10 from telemetry.page import page_test
11 from telemetry.unittest import test
dtu 2014/06/25 23:59:39 Not convinced about this alias - there's nothing d
12 from telemetry.unittest import options_for_unittests 12 from telemetry.unittest import options_for_unittests
13 13
14 14
15 class RasterizeAndRecordMicroUnitTest( 15 class RasterizeAndRecordMicroUnitTest(
16 page_measurement_unittest_base.PageMeasurementUnitTestBase): 16 page_measurement_unittest_base.PageMeasurementUnitTestBase):
17 """Smoke test for rasterize_and_record_micro measurement 17 """Smoke test for rasterize_and_record_micro measurement
18 18
19 Runs rasterize_and_record_micro measurement on a simple page and verifies 19 Runs rasterize_and_record_micro measurement on a simple page and verifies
20 that all metrics were added to the results. The test is purely functional, 20 that all metrics were added to the results. The test is purely functional,
21 i.e. it only checks if the metrics are present and non-zero. 21 i.e. it only checks if the metrics are present and non-zero.
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 total_picture_layers_with_no_content[0].GetRepresentativeNumber(), 0) 87 total_picture_layers_with_no_content[0].GetRepresentativeNumber(), 0)
88 88
89 total_picture_layers_off_screen = \ 89 total_picture_layers_off_screen = \
90 results.FindAllPageSpecificValuesNamed( 90 results.FindAllPageSpecificValuesNamed(
91 'total_picture_layers_off_screen') 91 'total_picture_layers_off_screen')
92 self.assertEquals(len(total_picture_layers_off_screen), 1) 92 self.assertEquals(len(total_picture_layers_off_screen), 1)
93 self.assertEqual( 93 self.assertEqual(
94 total_picture_layers_off_screen[0].GetRepresentativeNumber(), 0) 94 total_picture_layers_off_screen[0].GetRepresentativeNumber(), 0)
95 95
96 96
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698