Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / tools / perf / page_sets / top_10.py
index 0eb4e7c..4297b19 100644 (file)
@@ -1,19 +1,22 @@
 # Copyright 2014 The Chromium Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
-# pylint: disable=W0401,W0614
-from telemetry.page.actions.all_page_actions import *
 from telemetry.page import page as page_module
 from telemetry.page import page_set as page_set_module
 
 
 class SimpleScrollPage(page_module.Page):
   def __init__(self, url, page_set, credentials='', name=''):
-    super(SimpleScrollPage, self).__init__(url, page_set=page_set, name=name)
+    super(SimpleScrollPage, self).__init__(
+        url, page_set=page_set, name=name,
+        credentials_path='data/credentials.json')
     self.credentials = credentials
 
   def RunSmoothness(self, action_runner):
-    action_runner.RunAction(ScrollAction())
+    interaction = action_runner.BeginGestureInteraction(
+        'ScrollAction', is_smooth=True)
+    action_runner.ScrollPage()
+    interaction.End()
 
 class Google(SimpleScrollPage):
   def __init__(self, page_set):
@@ -89,7 +92,6 @@ class Top10PageSet(page_set_module.PageSet):
   def __init__(self):
     super(Top10PageSet, self).__init__(
       archive_data_file='data/top_10.json',
-      credentials_path='data/credentials.json',
       user_agent_type='desktop',
       bucket=page_set_module.PARTNER_BUCKET)