blob: acf8ef3c77aa8c95ab374ed9efc741d355c0106c [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,
Ravi Mistry698edfe2017-08-02 13:24:52 -040017 name=url,
borenetdc89ca52014-10-17 07:37:05 -070018 page_set=page_set,
rmistrydd3b12e2015-06-30 03:54:07 -070019 credentials_path='data/credentials.json',
20 shared_page_state_class=shared_page_state.SharedDesktopPageState)
borenetdc89ca52014-10-17 07:37:05 -070021 self.archive_data_file = 'data/skia_chalkboard_desktop.json'
22
borenetdc89ca52014-10-17 07:37:05 -070023
rmistry8f74c162015-06-30 08:22:25 -070024class SkiaChalkboardDesktopPageSet(story.StorySet):
borenetdc89ca52014-10-17 07:37:05 -070025
26 """ Pages designed to represent the median, not highly optimized web """
27
28 def __init__(self):
rmistry7620bf02014-10-27 06:42:11 -070029 super(SkiaChalkboardDesktopPageSet, self).__init__(
borenetdc89ca52014-10-17 07:37:05 -070030 archive_data_file='data/skia_chalkboard_desktop.json')
31
32 urls_list = [
33 # Why: from fmalita
34 ('http://ie.microsoft.com/testdrive/Performance/Chalkboard/Images/'
35 'Chalkboard.svg'),
36 ]
37
38 for url in urls_list:
rmistry16857e42015-06-30 09:20:17 -070039 self.AddStory(SkiaBuildbotDesktopPage(url, self))