1dc89ca56e6f33790cda2cd93ad772ca61497346bborenet# Copyright 2014 The Chromium Authors. All rights reserved.
2dc89ca56e6f33790cda2cd93ad772ca61497346bborenet# Use of this source code is governed by a BSD-style license that can be
3dc89ca56e6f33790cda2cd93ad772ca61497346bborenet# found in the LICENSE file.
4dc89ca56e6f33790cda2cd93ad772ca61497346bborenet# pylint: disable=W0401,W0614
5dc89ca56e6f33790cda2cd93ad772ca61497346bborenet
6dc89ca56e6f33790cda2cd93ad772ca61497346bborenet
78f74c160c31b11155300f0a7b79cb8906775c185rmistryfrom telemetry import story
8dc89ca56e6f33790cda2cd93ad772ca61497346bborenetfrom telemetry.page import page as page_module
9dd3b12e270ada5cc207c54d0d26c7a7c3d0e123ermistryfrom telemetry.page import shared_page_state
10dc89ca56e6f33790cda2cd93ad772ca61497346bborenet
11dc89ca56e6f33790cda2cd93ad772ca61497346bborenet
12dc89ca56e6f33790cda2cd93ad772ca61497346bborenetclass SkiaBuildbotDesktopPage(page_module.Page):
13dc89ca56e6f33790cda2cd93ad772ca61497346bborenet
14dc89ca56e6f33790cda2cd93ad772ca61497346bborenet  def __init__(self, url, page_set):
15dc89ca56e6f33790cda2cd93ad772ca61497346bborenet    super(SkiaBuildbotDesktopPage, self).__init__(
16dc89ca56e6f33790cda2cd93ad772ca61497346bborenet        url=url,
17dc89ca56e6f33790cda2cd93ad772ca61497346bborenet        page_set=page_set,
18dd3b12e270ada5cc207c54d0d26c7a7c3d0e123ermistry        credentials_path='data/credentials.json',
19dd3b12e270ada5cc207c54d0d26c7a7c3d0e123ermistry        shared_page_state_class=shared_page_state.SharedDesktopPageState)
20dc89ca56e6f33790cda2cd93ad772ca61497346bborenet    self.archive_data_file = 'data/skia_mozilla_nexus10.json'
21dc89ca56e6f33790cda2cd93ad772ca61497346bborenet
227aa4d349be08cd622b715b21dd1e7770f7db2c01rmistry  def RunNavigateSteps(self, action_runner):
236bad28de5268cbcf504799782477a7e33991610cnednguyen    action_runner.Navigate(self.url)
247aa4d349be08cd622b715b21dd1e7770f7db2c01rmistry    action_runner.Wait(5)
257aa4d349be08cd622b715b21dd1e7770f7db2c01rmistry
26dc89ca56e6f33790cda2cd93ad772ca61497346bborenet
278f74c160c31b11155300f0a7b79cb8906775c185rmistryclass SkiaMozillaNexus10PageSet(story.StorySet):
28dc89ca56e6f33790cda2cd93ad772ca61497346bborenet
29dc89ca56e6f33790cda2cd93ad772ca61497346bborenet  """ Pages designed to represent the median, not highly optimized web """
30dc89ca56e6f33790cda2cd93ad772ca61497346bborenet
31dc89ca56e6f33790cda2cd93ad772ca61497346bborenet  def __init__(self):
327620bf06581aa36d8c478624eff240ff150f3bb7rmistry    super(SkiaMozillaNexus10PageSet, self).__init__(
33dc89ca56e6f33790cda2cd93ad772ca61497346bborenet      archive_data_file='data/skia_mozilla_nexus10.json')
34dc89ca56e6f33790cda2cd93ad772ca61497346bborenet
35dc89ca56e6f33790cda2cd93ad772ca61497346bborenet    urls_list = [
36dc89ca56e6f33790cda2cd93ad772ca61497346bborenet      # Why:
37dc89ca56e6f33790cda2cd93ad772ca61497346bborenet      'http://planet.mozilla.org/',
38dc89ca56e6f33790cda2cd93ad772ca61497346bborenet    ]
39dc89ca56e6f33790cda2cd93ad772ca61497346bborenet
40dc89ca56e6f33790cda2cd93ad772ca61497346bborenet    for url in urls_list:
4116857e46bbc00a5e38f50ee509569e38d1ff0db4rmistry      self.AddStory(SkiaBuildbotDesktopPage(url, self))
42