borenet | dc89ca5 | 2014-10-17 07:37:05 -0700 | [diff] [blame] | 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 | # pylint: disable=W0401,W0614 |
| 5 | |
| 6 | |
rmistry | 8f74c16 | 2015-06-30 08:22:25 -0700 | [diff] [blame] | 7 | from telemetry import story |
borenet | dc89ca5 | 2014-10-17 07:37:05 -0700 | [diff] [blame] | 8 | from telemetry.page import page as page_module |
rmistry | dd3b12e | 2015-06-30 03:54:07 -0700 | [diff] [blame] | 9 | from telemetry.page import shared_page_state |
borenet | dc89ca5 | 2014-10-17 07:37:05 -0700 | [diff] [blame] | 10 | |
| 11 | |
| 12 | class 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, |
rmistry | dd3b12e | 2015-06-30 03:54:07 -0700 | [diff] [blame] | 18 | credentials_path='data/credentials.json', |
| 19 | shared_page_state_class=shared_page_state.SharedDesktopPageState) |
borenet | dc89ca5 | 2014-10-17 07:37:05 -0700 | [diff] [blame] | 20 | self.archive_data_file = 'data/skia_wowwiki_desktop.json' |
| 21 | |
rmistry | 7aa4d34 | 2014-10-29 08:19:04 -0700 | [diff] [blame] | 22 | def RunNavigateSteps(self, action_runner): |
nednguyen | 6bad28d | 2015-05-16 15:47:02 -0700 | [diff] [blame] | 23 | action_runner.Navigate(self.url) |
Ravi Mistry | 7cf0294 | 2014-10-29 17:39:15 -0400 | [diff] [blame] | 24 | action_runner.Wait(25) |
rmistry | 7aa4d34 | 2014-10-29 08:19:04 -0700 | [diff] [blame] | 25 | |
borenet | dc89ca5 | 2014-10-17 07:37:05 -0700 | [diff] [blame] | 26 | |
rmistry | 8f74c16 | 2015-06-30 08:22:25 -0700 | [diff] [blame] | 27 | class SkiaWowwikiDesktopPageSet(story.StorySet): |
borenet | dc89ca5 | 2014-10-17 07:37:05 -0700 | [diff] [blame] | 28 | |
| 29 | """ Pages designed to represent the median, not highly optimized web """ |
| 30 | |
| 31 | def __init__(self): |
rmistry | 7620bf0 | 2014-10-27 06:42:11 -0700 | [diff] [blame] | 32 | super(SkiaWowwikiDesktopPageSet, self).__init__( |
borenet | dc89ca5 | 2014-10-17 07:37:05 -0700 | [diff] [blame] | 33 | 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: |
rmistry | 16857e4 | 2015-06-30 09:20:17 -0700 | [diff] [blame^] | 41 | self.AddStory(SkiaBuildbotDesktopPage(url, self)) |