Fix OOP <webview> resize and autosize.
[chromium-blink-merge.git] / tools / perf / page_sets / tough_path_rendering_cases.py
blob5c25d41658f61d4ae2ea9f0d09700d162b48c51d
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
3 # found in the LICENSE file.
4 from telemetry.page import page as page_module
5 from telemetry import story
8 class ToughPathRenderingCasesPage(page_module.Page):
10 def RunPageInteractions(self, action_runner):
11 with action_runner.CreateInteraction('ClickStart'):
12 action_runner.Wait(10)
15 class ChalkboardPage(page_module.Page):
17 def RunPageInteractions(self, action_runner):
18 with action_runner.CreateInteraction('ClickStart'):
19 action_runner.EvaluateJavaScript(
20 'document.getElementById("StartButton").click()')
21 action_runner.Wait(20)
23 class ToughPathRenderingCasesPageSet(story.StorySet):
25 """
26 Description: Self-driven path rendering examples
27 """
29 def __init__(self):
30 super(ToughPathRenderingCasesPageSet, self).__init__(
31 archive_data_file='data/tough_path_rendering_cases.json',
32 cloud_storage_bucket=story.PARTNER_BUCKET)
34 urls_list = [
35 'http://www.craftymind.com/factory/guimark2/HTML5ChartingTest.html'
38 for url in urls_list:
39 self.AddStory(ToughPathRenderingCasesPage(url, self))
41 self.AddStory(ChalkboardPage(
42 'http://ie.microsoft.com/testdrive/Performance/Chalkboard/', self))