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

Unified Diff: tools/chrome_proxy/integration_tests/chrome_proxy_pagesets/pass_through.py

Issue 2672803002: [Telemetry refactor] Migrate clients to new JavaScript API (batch 3) (Closed)
Patch Set: add comment on tools/android 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
Index: tools/chrome_proxy/integration_tests/chrome_proxy_pagesets/pass_through.py
diff --git a/tools/chrome_proxy/integration_tests/chrome_proxy_pagesets/pass_through.py b/tools/chrome_proxy/integration_tests/chrome_proxy_pagesets/pass_through.py
index c19cfc3e73e7f82616a7aab49bb037605202ba6c..cecba7044bb26244deb56f0713ed4147098a8932 100644
--- a/tools/chrome_proxy/integration_tests/chrome_proxy_pagesets/pass_through.py
+++ b/tools/chrome_proxy/integration_tests/chrome_proxy_pagesets/pass_through.py
@@ -17,13 +17,13 @@ class PassThroughPage(page_module.Page):
def RunNavigateSteps(self, action_runner):
super(PassThroughPage, self).RunNavigateSteps(action_runner)
- action_runner.ExecuteJavaScript('''
+ action_runner.ExecuteJavaScript2('''
(function() {
var request = new XMLHttpRequest();
- request.open("GET", "%s");
+ request.open("GET", {{ url }});
request.setRequestHeader("Chrome-Proxy-Accept-Transform", "identity");
request.send(null);
- })();''' % (self.url))
+ })();''', url=self.url)
action_runner.Wait(1)

Powered by Google App Engine
This is Rietveld 408576698