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

Unified Diff: tools/perf/benchmarks/pica.py

Issue 22884003: Enable native custom elements for Pica benchmark (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Avoid dups Created 7 years, 4 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/benchmarks/pica.py
diff --git a/tools/perf/benchmarks/pica.py b/tools/perf/benchmarks/pica.py
index 01920bdcda8511a32f6dae02f9b7b98b01602c9a..912252f577d1a39e6cd8519216a098d1aeef2de3 100644
--- a/tools/perf/benchmarks/pica.py
+++ b/tools/perf/benchmarks/pica.py
@@ -6,6 +6,10 @@ from telemetry import test
from telemetry.page import page_measurement
class PicaMeasurement(page_measurement.PageMeasurement):
+ def CustomizeBrowserOptions(self, options):
+ # Needed for native custom elements (document.register)
+ options.AppendExtraBrowserArg('--enable-experimental-web-platform-features')
+
def MeasurePage(self, _, tab, results):
result = int(tab.EvaluateJavaScript('__pica_load_time'))
results.Add('Total', 'ms', result)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698