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

Unified Diff: tools/perf/measurements/rasterize_and_record_micro_unittest.py

Issue 637153002: telemetry: Remove command line args from page test (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Suppress pylint E1003 Created 6 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: tools/perf/measurements/rasterize_and_record_micro_unittest.py
diff --git a/tools/perf/measurements/rasterize_and_record_micro_unittest.py b/tools/perf/measurements/rasterize_and_record_micro_unittest.py
index 2abe61fe4b88e5cbeb4c7a84666ebc97dd4831db..6b2f937269a83ac98ed7dd4c6c11d28cc4141951 100644
--- a/tools/perf/measurements/rasterize_and_record_micro_unittest.py
+++ b/tools/perf/measurements/rasterize_and_record_micro_unittest.py
@@ -23,15 +23,13 @@ class RasterizeAndRecordMicroUnitTest(page_test_test_case.PageTestTestCase):
def setUp(self):
self._options = options_for_unittests.GetCopy()
self._options.browser_options.wpr_mode = wpr_modes.WPR_OFF
- self._options.rasterize_repeat = 1
- self._options.record_repeat = 1
- self._options.start_wait_time = 0.0
- self._options.report_detailed_results = True
@test.Disabled('win', 'chromeos')
def testRasterizeAndRecordMicro(self):
ps = self.CreatePageSetFromFileInUnittestDataDir('blank.html')
- measurement = rasterize_and_record_micro.RasterizeAndRecordMicro()
+ measurement = rasterize_and_record_micro.RasterizeAndRecordMicro(
+ rasterize_repeat=1, record_repeat=1, start_wait_time=0.0,
+ report_detailed_results=True)
try:
results = self.RunMeasurement(measurement, ps, options=self._options)
except page_test.TestNotSupportedOnPlatformFailure as failure:
@@ -91,5 +89,3 @@ class RasterizeAndRecordMicroUnitTest(page_test_test_case.PageTestTestCase):
self.assertEquals(len(total_picture_layers_off_screen), 1)
self.assertEqual(
total_picture_layers_off_screen[0].GetRepresentativeNumber(), 0)
-
-

Powered by Google App Engine
This is Rietveld 408576698