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

Side by Side Diff: tools/perf/page_sets/tough_path_rendering_cases.py

Issue 1198823004: Update perf page_set to use story_set (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 unified diff | Download patch
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 from telemetry import story
4 from telemetry.page import page as page_module 5 from telemetry.page import page as page_module
5 from telemetry.page import page_set as page_set_module
6 6
7 7
8 class ToughPathRenderingCasesPage(page_module.Page): 8 class ToughPathRenderingCasesPage(page_module.Page):
9 9
10 def RunPageInteractions(self, action_runner): 10 def RunPageInteractions(self, action_runner):
11 with action_runner.CreateInteraction('ClickStart'): 11 with action_runner.CreateInteraction('ClickStart'):
12 action_runner.Wait(10) 12 action_runner.Wait(10)
13 13
14 14
15 class ChalkboardPage(page_module.Page): 15 class ChalkboardPage(page_module.Page):
16 16
17 def RunPageInteractions(self, action_runner): 17 def RunPageInteractions(self, action_runner):
18 with action_runner.CreateInteraction('ClickStart'): 18 with action_runner.CreateInteraction('ClickStart'):
19 action_runner.EvaluateJavaScript( 19 action_runner.EvaluateJavaScript(
20 'document.getElementById("StartButton").click()') 20 'document.getElementById("StartButton").click()')
21 action_runner.Wait(20) 21 action_runner.Wait(20)
22 22
23 class ToughPathRenderingCasesPageSet(page_set_module.PageSet): 23 class ToughPathRenderingCasesPageSet(story.StorySet):
24 24
25 """ 25 """
26 Description: Self-driven path rendering examples 26 Description: Self-driven path rendering examples
27 """ 27 """
28 28
29 def __init__(self): 29 def __init__(self):
30 super(ToughPathRenderingCasesPageSet, self).__init__( 30 super(ToughPathRenderingCasesPageSet, self).__init__(
31 archive_data_file='data/tough_path_rendering_cases.json', 31 archive_data_file='data/tough_path_rendering_cases.json',
32 bucket=page_set_module.PARTNER_BUCKET) 32 cloud_storage_bucket=story.PARTNER_BUCKET)
33 33
34 urls_list = [ 34 urls_list = [
35 'http://www.craftymind.com/factory/guimark2/HTML5ChartingTest.html' 35 'http://www.craftymind.com/factory/guimark2/HTML5ChartingTest.html'
36 ] 36 ]
37 37
38 for url in urls_list: 38 for url in urls_list:
39 self.AddUserStory(ToughPathRenderingCasesPage(url, self)) 39 self.AddUserStory(ToughPathRenderingCasesPage(url, self))
40 40
41 self.AddUserStory(ChalkboardPage( 41 self.AddUserStory(ChalkboardPage(
42 'http://ie.microsoft.com/testdrive/Performance/Chalkboard/', self)) 42 'http://ie.microsoft.com/testdrive/Performance/Chalkboard/', self))
OLDNEW
« no previous file with comments | « tools/perf/page_sets/tough_memory_multi_tab.py ('k') | tools/perf/page_sets/tough_pinch_zoom_cases.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698