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

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

Issue 641823004: telemetry: Allow page tests to be configured via constructor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git/+/master
Patch Set: Add debug output to figure out why pixel tests fail on bots. Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/perf/measurements/repaint.py ('k') | tools/perf/measurements/skpicture_printer.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/measurements/screenshot.py
diff --git a/tools/perf/measurements/screenshot.py b/tools/perf/measurements/screenshot.py
index 8564c8a473236a06435c33aaef30ee18a4521a9e..cc15ac13ce4848470ee265d33d0613b1ed528b28 100644
--- a/tools/perf/measurements/screenshot.py
+++ b/tools/perf/measurements/screenshot.py
@@ -13,17 +13,16 @@ class Screenshot(page_test.PageTest):
super(Screenshot, self).__init__(
action_name_to_run = 'RunPageInteractions',
is_action_name_to_run_optional=True)
+ self._png_outdir = None
- @classmethod
- def AddCommandLineArgs(cls, parser):
+ def AddCommandLineArgs(self, parser):
parser.add_option('--png-outdir',
help='Output directory for the PNG files')
- @classmethod
- def ProcessCommandLineArgs(cls, parser, args):
+ def ProcessCommandLineArgs(self, parser, args):
if not args.png_outdir:
parser.error('Please specify --png-outdir')
- cls._png_outdir = args.png_outdir
+ self._png_outdir = args.png_outdir
def ValidateAndMeasurePage(self, page, tab, results):
if not tab.screenshot_supported:
« no previous file with comments | « tools/perf/measurements/repaint.py ('k') | tools/perf/measurements/skpicture_printer.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698