| Index: tools/perf/page_sets/top_10.py
|
| diff --git a/tools/perf/page_sets/top_10.py b/tools/perf/page_sets/top_10.py
|
| index 34ffd1114b495a20c521d6b6c69cf2214825b552..0668d79116dc2a789dbd88202f903ec3c496ef71 100644
|
| --- a/tools/perf/page_sets/top_10.py
|
| +++ b/tools/perf/page_sets/top_10.py
|
| @@ -49,12 +49,12 @@ class GoogleCalendar(SimpleScrollPage):
|
|
|
| def RunNavigateSteps(self, action_runner):
|
| super(GoogleCalendar, self).RunNavigateSteps(action_runner)
|
| - 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' : 2}))
|
| action_runner.RunAction(WaitAction({
|
| 'condition' : 'element', 'selector' : 'div[class~="navForward"]'}))
|
|
|