forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a page set for the static top 25 pages.
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
Showing
1 changed file
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)) |