[Android WebViewShell] Add inclusion test for webview exposed stable interfaces.
[chromium-blink-merge.git] / tools / perf / page_sets / startup_pages.py
blob2ca04aedf73f41e514553b414202257a246d1f4b
1 # Copyright 2014 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 StartedPage(page_module.Page):
10 def __init__(self, url, startup_url, page_set):
11 super(StartedPage, self).__init__(
12 url=url, page_set=page_set, startup_url=startup_url)
13 self.archive_data_file = 'data/startup_pages.json'
15 def RunNavigateSteps(self, action_runner):
16 action_runner.Wait(10)
18 def RunPageInteractions(self, action_runner):
19 self.RunNavigateSteps(action_runner)
22 class StartupPagesPageSet(story.StorySet):
24 """ Pages for testing starting Chrome with a URL.
25 Note that this file can't be used with record_wpr, since record_wpr requires
26 a true navigate step, which we do not want for startup testing. Instead use
27 record_wpr startup_pages_record to record data for this test.
28 """
30 def __init__(self):
31 super(StartupPagesPageSet, self).__init__(
32 archive_data_file='data/startup_pages.json',
33 cloud_storage_bucket=story.PARTNER_BUCKET)
35 # Typical page.
36 self.AddStory(StartedPage('about:blank', 'about:blank', self))
37 # Typical page.
38 self.AddStory(StartedPage('http://bbc.co.uk', 'http://bbc.co.uk', self))
39 # Horribly complex page - stress test!
40 self.AddStory(StartedPage(
41 'http://kapook.com', 'http://kapook.com', self))