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

Side by Side Diff: tools/perf/benchmarks/pica.py

Issue 23512005: BrowserOptions.extra_browser_args is now a set. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « content/test/gpu/gpu_tests/webgl_conformance.py ('k') | tools/perf/benchmarks/spaceport.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 from telemetry import test 5 from telemetry import test
6 from telemetry.page import page_measurement 6 from telemetry.page import page_measurement
7 7
8 class PicaMeasurement(page_measurement.PageMeasurement): 8 class PicaMeasurement(page_measurement.PageMeasurement):
9 def CustomizeBrowserOptions(self, options): 9 def CustomizeBrowserOptions(self, options):
10 # Needed for native custom elements (document.register) 10 # Needed for native custom elements (document.register)
11 options.AppendExtraBrowserArg('--enable-experimental-web-platform-features') 11 options.AppendExtraBrowserArgs(
12 '--enable-experimental-web-platform-features')
12 13
13 def MeasurePage(self, _, tab, results): 14 def MeasurePage(self, _, tab, results):
14 result = int(tab.EvaluateJavaScript('__pica_load_time')) 15 result = int(tab.EvaluateJavaScript('__pica_load_time'))
15 results.Add('Total', 'ms', result) 16 results.Add('Total', 'ms', result)
16 17
17 18
18 class Pica(test.Test): 19 class Pica(test.Test):
19 test = PicaMeasurement 20 test = PicaMeasurement
20 page_set = 'page_sets/pica.json' 21 page_set = 'page_sets/pica.json'
OLDNEW
« no previous file with comments | « content/test/gpu/gpu_tests/webgl_conformance.py ('k') | tools/perf/benchmarks/spaceport.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698