Skip to content

Commit

Permalink
Add a page set for the static top 25 pages.
Browse files Browse the repository at this point in the history
Bug: 762230
Change-Id: I23aa5f3fe85df4f3856dfd5eab1422fe0d84f501
Reviewed-on: https://chromium-review.googlesource.com/653601
Reviewed-by: Ned Nguyen <nednguyen@google.com>
Commit-Queue: Walter Korman <wkorman@chromium.org>
Cr-Commit-Position: refs/heads/master@{#500119}
  • Loading branch information
shaper authored and Commit Bot committed Sep 6, 2017
1 parent 32e20c1 commit 1ad5b55
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions tools/perf/page_sets/static_top_25_pages.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# Copyright 2017 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

from telemetry.page import page
from telemetry.page import shared_page_state
from telemetry import story

STATIC_TOP_25_DIR = 'static_top_25'

class StaticTop25PageSet(story.StorySet):

""" Page set consists of static top 25 pages. """

def __init__(self):
super(StaticTop25PageSet, self).__init__(
serving_dirs=[STATIC_TOP_25_DIR],
cloud_storage_bucket=story.PARTNER_BUCKET)

shared_desktop_state = shared_page_state.SharedDesktopPageState
files = [
'amazon.html',
'blogger.html',
'booking.html',
'cnn.html',
'ebay.html',
'espn.html',
'facebook.html',
'gmail.html',
'googlecalendar.html',
'googledocs.html',
'google.html',
'googleimagesearch.html',
'googleplus.html',
'linkedin.html',
'pinterest.html',
'techcrunch.html',
'twitter.html',
'weather.html',
'wikipedia.html',
'wordpress.html',
'yahooanswers.html',
'yahoogames.html',
'yahoonews.html',
'yahoosports.html',
'youtube.html'
]
for f in files:
url = "file://%s/%s" % (STATIC_TOP_25_DIR, f)
self.AddStory(
page.Page(url, self, self.base_dir,
shared_page_state_class=shared_desktop_state,
name=url))

0 comments on commit 1ad5b55

Please sign in to comment.