blob: 54e9acb4aeaeec43587e5af4b408a16b40ce1090 [file] [log] [blame]
borenetdc89ca52014-10-17 07:37:05 -07001# 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# pylint: disable=W0401,W0614
5
6
rmistry8f74c162015-06-30 08:22:25 -07007from telemetry import story
borenetdc89ca52014-10-17 07:37:05 -07008from telemetry.page import page as page_module
rmistrydd3b12e2015-06-30 03:54:07 -07009from telemetry.page import shared_page_state
borenetdc89ca52014-10-17 07:37:05 -070010
11
12class SkiaBuildbotDesktopPage(page_module.Page):
13
14 def __init__(self, url, page_set):
15 super(SkiaBuildbotDesktopPage, self).__init__(
16 url=url,
17 page_set=page_set,
rmistrydd3b12e2015-06-30 03:54:07 -070018 credentials_path='data/credentials.json',
19 shared_page_state_class=shared_page_state.SharedDesktopPageState)
borenetdc89ca52014-10-17 07:37:05 -070020 self.archive_data_file = 'data/skia_wowwiki_desktop.json'
21
rmistry7aa4d342014-10-29 08:19:04 -070022 def RunNavigateSteps(self, action_runner):
nednguyen6bad28d2015-05-16 15:47:02 -070023 action_runner.Navigate(self.url)
Ravi Mistry7cf02942014-10-29 17:39:15 -040024 action_runner.Wait(25)
rmistry7aa4d342014-10-29 08:19:04 -070025
borenetdc89ca52014-10-17 07:37:05 -070026
rmistry8f74c162015-06-30 08:22:25 -070027class SkiaWowwikiDesktopPageSet(story.StorySet):
borenetdc89ca52014-10-17 07:37:05 -070028
29 """ Pages designed to represent the median, not highly optimized web """
30
31 def __init__(self):
rmistry7620bf02014-10-27 06:42:11 -070032 super(SkiaWowwikiDesktopPageSet, self).__init__(
borenetdc89ca52014-10-17 07:37:05 -070033 archive_data_file='data/skia_wowwiki_desktop.json')
34
35 urls_list = [
36 # Why: http://code.google.com/p/chromium/issues/detail?id=136555
37 'http://www.wowwiki.com/World_of_Warcraft:_Mists_of_Pandaria',
38 ]
39
40 for url in urls_list:
rmistry16857e42015-06-30 09:20:17 -070041 self.AddStory(SkiaBuildbotDesktopPage(url, self))