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

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

Issue 2719853003: [Telemetry refactor] Drop "2" from method calls to JS API (Closed)
Patch Set: Created 3 years, 10 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/benchmarks/jetstream.py ('k') | tools/perf/benchmarks/media.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/benchmarks/kraken.py
diff --git a/tools/perf/benchmarks/kraken.py b/tools/perf/benchmarks/kraken.py
index d2834b5c6cd8e5baa9ee89d33ee42158cc1583ba..3d90902d2da9237489c544670829df33cf4984de 100644
--- a/tools/perf/benchmarks/kraken.py
+++ b/tools/perf/benchmarks/kraken.py
@@ -86,14 +86,14 @@ class _KrakenMeasurement(legacy_page_test.LegacyPageTest):
self._power_metric.Start(page, tab)
def ValidateAndMeasurePage(self, page, tab, results):
- tab.WaitForJavaScriptCondition2(
+ tab.WaitForJavaScriptCondition(
'document.title.indexOf("Results") != -1', timeout=700)
tab.WaitForDocumentReadyStateToBeComplete()
self._power_metric.Stop(page, tab)
self._power_metric.AddResults(tab, results)
- result_dict = json.loads(tab.EvaluateJavaScript2("""
+ result_dict = json.loads(tab.EvaluateJavaScript("""
var formElement = document.getElementsByTagName("input")[0];
decodeURIComponent(formElement.value.split("?")[1]);
"""))
« no previous file with comments | « tools/perf/benchmarks/jetstream.py ('k') | tools/perf/benchmarks/media.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698