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

Unified Diff: tools/perf/page_sets/top_25.py

Issue 313383002: Cleanup interaction creation and add ExecuteJavaScript to action_runner.py (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 6 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/page_sets/top_10.py ('k') | tools/perf/page_sets/webrtc_cases.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/page_sets/top_25.py
diff --git a/tools/perf/page_sets/top_25.py b/tools/perf/page_sets/top_25.py
index 9fead4bf2ff0f4341f86805a8ace25344a4f76b6..3b615c6a750ed1dbf29e781fb6ee648e5ac0d35d 100644
--- a/tools/perf/page_sets/top_25.py
+++ b/tools/perf/page_sets/top_25.py
@@ -205,16 +205,13 @@ class GoogleCalendarPage(Top25Page):
'condition': 'element',
'selector': 'div[class~="navForward"]'
}))
- action_runner.RunAction(JavascriptAction(
- {
- 'expression': '''
- (function() {
- var elem = document.createElement('meta');
- elem.name='viewport';
- elem.content='initial-scale=1';
- document.body.appendChild(elem);
- })();'''
- }))
+ action_runner.ExecuteJavaScript('''
+ (function() {
+ var elem = document.createElement('meta');
+ elem.name='viewport';
+ elem.content='initial-scale=1';
+ document.body.appendChild(elem);
+ })();''')
action_runner.RunAction(WaitAction(
{
'seconds': 1
« no previous file with comments | « tools/perf/page_sets/top_10.py ('k') | tools/perf/page_sets/webrtc_cases.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698