Commit af8396e1 authored by Sunny Sachanandani's avatar Sunny Sachanandani Committed by Commit Bot

perf: Rename key_mobile_sites_smooth pages

Use shorter names which can prefixed so that a page can be instantiated
multiple times in upcoming rendering benchmarks.

R=nednguyen@google.com

Bug: 760553
Change-Id: Iaea23d607aca859e72dff0015154551b32935d72
Reviewed-on: https://chromium-review.googlesource.com/942188
Commit-Queue: Sunny Sachanandani <sunnyps@chromium.org>
Reviewed-by: default avatarNed Nguyen <nednguyen@google.com>
Cr-Commit-Position: refs/heads/master@{#541025}
parent 1aca9d11
......@@ -99,7 +99,7 @@ crbug.com/507865 [ All ] oilpan_gc_times.key_silk_cases/https://polymer-topeka.a
crbug.com/338838 [ All ] oilpan_gc_times.key_silk_cases/http://plus.google.com/app/basic/stream [ Skip ]
# Benchmark: oilpan_gc_times.sync_scroll.key_mobile_sites_smooth
crbug.com/756119 [ All ] oilpan_gc_times.sync_scroll.key_mobile_sites_smooth/http://digg.com [ Skip ]
crbug.com/756119 [ All ] oilpan_gc_times.sync_scroll.key_mobile_sites_smooth/digg [ Skip ]
# Benchmark: oortonline
crbug.com/815181 [ Win ] oortonline_tbmv2/http://oortonline.gl/#run [ Skip ]
......@@ -130,11 +130,11 @@ crbug.com/750131 [ Win ] smoothness.key_desktop_move_cases/https://mail.google.c
crbug.com/770904 [ Mac ] smoothness.key_desktop_move_cases/https://mail.google.com/mail/ [ Skip ]
# Benchmark: smoothness.key_mobile_sites_smooth
crbug.com/756119 [ All ] smoothness.key_mobile_sites_smooth/http://digg.com [ Skip ]
crbug.com/667432 [ All ] smoothness.key_mobile_sites_smooth/http://www.amazon.com/gp/aw/s/ref=is_box_?k=nicolas+cage [ Skip ]
crbug.com/169980 [ All ] smoothness.key_mobile_sites_smooth/Twitter [ Skip ]
crbug.com/249722 [ All ] smoothness.key_mobile_sites_smooth/ESPN [ Skip ]
crbug.com/249736 [ All ] smoothness.key_mobile_sites_smooth/http://forecast.io [ Skip ]
crbug.com/756119 [ All ] smoothness.key_mobile_sites_smooth/digg [ Skip ]
crbug.com/667432 [ All ] smoothness.key_mobile_sites_smooth/amazon [ Skip ]
crbug.com/169980 [ All ] smoothness.key_mobile_sites_smooth/twitter [ Skip ]
crbug.com/249722 [ All ] smoothness.key_mobile_sites_smooth/espn [ Skip ]
crbug.com/249736 [ All ] smoothness.key_mobile_sites_smooth/forecast.io [ Skip ]
# Benchmark: smoothness.key_silk_cases
[ All ] smoothness.key_silk_cases/inbox_app.html?slide_drawer [ Skip ]
......@@ -151,7 +151,7 @@ crbug.com/685342 [ Nexus_7 ] smoothness.pathological_mobile_sites/* [ Skip ]
crbug.com/750833 [ Android_Webview ] smoothness.simple_mobile_sites/https://www.flickr.com/ [ Skip ]
# Benchmark: smoothness.sync_scroll.key_mobile_sites_smooth
crbug.com/756119 [ All ] smoothness.sync_scroll.key_mobile_sites_smooth/http://digg.com [ Skip ]
crbug.com/756119 [ All ] smoothness.sync_scroll.key_mobile_sites_smooth/digg [ Skip ]
# Benchmark: smoothness.top_25_smooth
crbug.com/762165 [ Win ] smoothness.top_25_smooth/https://www.google.com/calendar/ [ Skip ]
......
{
"archives": {
"ESPN": {
"espn": {
"DEFAULT": "key_mobile_sites_012.wprgo"
},
"Twitter": {
"twitter": {
"DEFAULT": "key_mobile_sites_011.wprgo"
},
"Wikipedia_(1_tab)": {
"wikipedia": {
"DEFAULT": "key_mobile_sites_009.wprgo"
},
"Wikipedia_(1_tab)-delayed_scroll_start": {
"wikipedia_delayed_scroll_start": {
"DEFAULT": "key_mobile_sites_009.wprgo"
},
"http://answers.yahoo.com/question/index?qid=20110117024343AAopj8f": {
"yahoo_answers": {
"DEFAULT": "key_mobile_sites_000.wprgo"
},
"http://cuteoverload.com": {
"cuteoverload": {
"DEFAULT": "key_mobile_sites_000.wprgo"
},
"http://digg.com": {
"digg": {
"DEFAULT": "key_mobile_sites_014.wprgo"
},
"http://en.blog.wordpress.com/2012/09/04/freshly-pressed-editors-picks-for-august-2012/": {
"wordpress": {
"DEFAULT": "key_mobile_sites_000.wprgo"
},
"http://en.wikipedia.org/wiki/Wikipedia": {
"DEFAULT": "key_mobile_sites_000.wprgo"
},
"http://forecast.io": {
"forecast.io": {
"DEFAULT": "key_mobile_sites_013.wprgo"
},
"http://ftw.usatoday.com/2014/05/spelling-bee-rules-shenanigans": {
"usatoday": {
"DEFAULT": "key_mobile_sites_007.wprgo"
},
"http://googlewebmastercentral.blogspot.com/": {
"blogspot": {
"DEFAULT": "key_mobile_sites_000.wprgo"
},
"http://groupcloned.com": {
"DEFAULT": "key_mobile_sites_002.wprgo"
},
"http://groupcloned.com/test/list-images-variable/index.html": {
"DEFAULT": "key_mobile_sites_004.wprgo"
},
"http://gsp.ro": {
"gsp.ro": {
"DEFAULT": "key_mobile_sites_000.wprgo"
},
"http://iphone.capitolvolkswagen.com/index.htm#new-inventory_p_2Fsb-new_p_2Ehtm_p_3Freset_p_3DInventoryListing": {
"capitolvolkswagen": {
"DEFAULT": "key_mobile_sites_000.wprgo"
},
"http://m.espn.go.com/nhl/rankings": {
"DEFAULT": "key_mobile_sites_008.wprgo"
},
"http://m.youtube.com/watch?v=9hBpF_Zj4OA": {
"youtube": {
"DEFAULT": "key_mobile_sites_000.wprgo"
},
"http://mlb.com/": {
"mlb": {
"DEFAULT": "key_mobile_sites_002.wprgo"
},
"http://mlb.mlb.com/index.jsp": {
"DEFAULT": "key_mobile_sites_000.wprgo"
},
"http://mobile-news.sandbox.google.com/news/p#2": {
"DEFAULT": "key_mobile_sites_001.wprgo"
},
"http://mobile-news.sandbox.google.com/news/pt0": {
"DEFAULT": "key_mobile_sites_005.wprgo"
},
"http://mobile-news.sandbox.google.com/news/pt1": {
"google_news": {
"DEFAULT": "key_mobile_sites_006.wprgo"
},
"http://news.yahoo.com": {
"yahoo_news": {
"DEFAULT": "key_mobile_sites_000.wprgo"
},
"http://nytimes.com/": {
"nytimes": {
"DEFAULT": "key_mobile_sites_000.wprgo"
},
"http://online.wsj.com/home-page": {
"wsj": {
"DEFAULT": "key_mobile_sites_000.wprgo"
},
"http://pinterest.com": {
"pinterest": {
"DEFAULT": "key_mobile_sites_000.wprgo"
},
"http://shop.mobileweb.ebay.com/searchresults?kw=viking+helmet": {
"ebay": {
"DEFAULT": "key_mobile_sites_000.wprgo"
},
"http://slashdot.org/": {
"slashdot": {
"DEFAULT": "key_mobile_sites_000.wprgo"
},
"http://sports.yahoo.com/": {
"yahoo_sports": {
"DEFAULT": "key_mobile_sites_000.wprgo"
},
"http://techcrunch.com": {
"techcrunch": {
"DEFAULT": "key_mobile_sites_000.wprgo"
},
"http://theverge.com": {
"theverge": {
"DEFAULT": "key_mobile_sites_000.wprgo"
},
"http://worldjournal.com/": {
"worldjournal": {
"DEFAULT": "key_mobile_sites_000.wprgo"
},
"http://www.amazon.com/gp/aw/s/ref=is_box_?k=nicolas+cage": {
"amazon": {
"DEFAULT": "key_mobile_sites_015.wprgo"
},
"http://www.androidpolice.com/2012/10/03/rumor-evidence-mounts-that-an-lg-optimus-g-nexus-is-coming-along-with-a-nexus-phone-certification-program/": {
"androidpolice": {
"DEFAULT": "key_mobile_sites_000.wprgo"
},
"http://www.baidu.com/s?wd=barack+obama&rsv_bp=0&rsv_spt=3&rsv_sug3=9&rsv_sug=0&rsv_sug4=3824&rsv_sug1=3&inputT=4920": {
"baidu": {
"DEFAULT": "key_mobile_sites_000.wprgo"
},
"http://www.bing.com/search?q=sloths": {
"bing": {
"DEFAULT": "key_mobile_sites_000.wprgo"
},
"http://www.boingboing.net": {
"boingboing": {
"DEFAULT": "key_mobile_sites_000.wprgo"
},
"http://www.booking.com/searchresults.html?src=searchresults&latitude=65.0500&longitude=25.4667": {
"booking.com": {
"DEFAULT": "key_mobile_sites_000.wprgo"
},
"http://www.cnn.com": {
"cnn": {
"DEFAULT": "key_mobile_sites_000.wprgo"
},
"http://www.cnn.com/2012/10/03/politics/michelle-obama-debate/index.html": {
"cnn_article": {
"DEFAULT": "key_mobile_sites_000.wprgo"
},
"http://www.deviantart.com/": {
"deviantart": {
"DEFAULT": "key_mobile_sites_000.wprgo"
},
"http://www.latimes.com": {
"latimes": {
"DEFAULT": "key_mobile_sites_007.wprgo"
},
"http://www.reddit.com/r/programming/comments/1g96ve": {
"reddit": {
"DEFAULT": "key_mobile_sites_010.wprgo"
},
"http://www.sfgate.com/": {
"sfgate": {
"DEFAULT": "key_mobile_sites_000.wprgo"
},
"http://www.theverge.com/2012/10/28/3568746/amazon-7-inch-fire-hd-ipad-mini-ad-ballsy": {
"theverge_article": {
"DEFAULT": "key_mobile_sites_000.wprgo"
},
"http://www.wowwiki.com/World_of_Warcraft:_Mists_of_Pandaria": {
"wowwiki": {
"DEFAULT": "key_mobile_sites_000.wprgo"
},
"https://facebook.com/barackobama": {
"facebook": {
"DEFAULT": "key_mobile_sites_003.wprgo"
},
"https://mail.google.com/mail/": {
"gmail": {
"DEFAULT": "key_mobile_sites_000.wprgo"
},
"https://plus.google.com/app/basic/110031535020051778989/posts?source=apppromo": {
"google_plus": {
"DEFAULT": "key_mobile_sites_000.wprgo"
},
"https://www.google.co.uk/search?hl=en&q=barack+obama&cad=h": {
"google_web_search": {
"DEFAULT": "key_mobile_sites_000.wprgo"
},
"https://www.google.com/calendar/": {
"google_calendar": {
"DEFAULT": "key_mobile_sites_000.wprgo"
},
"https://www.linkedin.com/in/linustorvalds": {
"linkedin": {
"DEFAULT": "key_mobile_sites_002.wprgo"
}
},
"description": "Describes the Web Page Replay archives for a story set. Don't edit by hand! Use record_wpr for updating.",
"platform_specific": true
}
\ No newline at end of file
}
# Copyright 2014 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 as page_module
from telemetry.page import shared_page_state
class KeyMobileSitesPage(page_module.Page):
def __init__(self,
url,
page_set,
name='',
tags=None,
extra_browser_args=None,
shared_page_state_class=shared_page_state.SharedMobilePageState):
if name == '':
name = url
super(KeyMobileSitesPage, self).__init__(
url=url,
page_set=page_set,
name=name,
tags=tags,
extra_browser_args=extra_browser_args,
shared_page_state_class=shared_page_state_class)
class CapitolVolkswagenPage(KeyMobileSitesPage):
""" Why: Typical mobile business site """
def __init__(self,
page_set,
name='',
extra_browser_args=None,
shared_page_state_class=shared_page_state.SharedMobilePageState):
super(CapitolVolkswagenPage, self).__init__(
url=(
'http://iphone.capitolvolkswagen.com/index.htm'
'#new-inventory_p_2Fsb-new_p_2Ehtm_p_3Freset_p_3DInventoryListing'),
page_set=page_set,
name=name,
extra_browser_args=extra_browser_args,
shared_page_state_class=shared_page_state_class)
def RunNavigateSteps(self, action_runner):
super(CapitolVolkswagenPage, self).RunNavigateSteps(action_runner)
action_runner.WaitForElement(text='Next 35')
action_runner.WaitForJavaScriptCondition(
'document.body.scrollHeight > 2560')
class TheVergeArticlePage(KeyMobileSitesPage):
""" Why: Top tech blog """
def __init__(self,
page_set,
name='',
extra_browser_args=None,
shared_page_state_class=shared_page_state.SharedMobilePageState):
super(TheVergeArticlePage, self).__init__(
# pylint: disable=line-too-long
url=
'http://www.theverge.com/2012/10/28/3568746/amazon-7-inch-fire-hd-ipad-mini-ad-ballsy',
page_set=page_set,
name=name,
extra_browser_args=extra_browser_args,
shared_page_state_class=shared_page_state_class)
def RunNavigateSteps(self, action_runner):
super(TheVergeArticlePage, self).RunNavigateSteps(action_runner)
action_runner.WaitForJavaScriptCondition(
'window.Chorus !== undefined &&'
'window.Chorus.Comments !== undefined &&'
'window.Chorus.Comments.Json !== undefined &&'
'(window.Chorus.Comments.loaded ||'
' window.Chorus.Comments.Json.load_comments())')
class CnnArticlePage(KeyMobileSitesPage):
""" Why: Top news site """
def __init__(self,
page_set,
name='',
extra_browser_args=None,
shared_page_state_class=shared_page_state.SharedMobilePageState):
super(CnnArticlePage, self).__init__(
# pylint: disable=line-too-long
url=
'http://www.cnn.com/2012/10/03/politics/michelle-obama-debate/index.html',
page_set=page_set,
name=name,
extra_browser_args=extra_browser_args,
shared_page_state_class=shared_page_state_class)
def RunNavigateSteps(self, action_runner):
super(CnnArticlePage, self).RunNavigateSteps(action_runner)
action_runner.Wait(8)
class FacebookPage(KeyMobileSitesPage):
""" Why: #1 (Alexa global) """
def __init__(self,
page_set,
name='',
extra_browser_args=None,
shared_page_state_class=shared_page_state.SharedMobilePageState):
super(FacebookPage, self).__init__(
url='https://facebook.com/barackobama',
page_set=page_set,
name=name,
extra_browser_args=extra_browser_args,
shared_page_state_class=shared_page_state_class)
def RunNavigateSteps(self, action_runner):
super(FacebookPage, self).RunNavigateSteps(action_runner)
action_runner.WaitForJavaScriptCondition(
'document.getElementById("u_0_c") !== null &&'
'document.body.scrollHeight > window.innerHeight')
class YoutubeMobilePage(KeyMobileSitesPage):
""" Why: #3 (Alexa global) """
def __init__(self,
page_set,
name='',
extra_browser_args=None,
shared_page_state_class=shared_page_state.SharedMobilePageState):
super(YoutubeMobilePage, self).__init__(
url='http://m.youtube.com/watch?v=9hBpF_Zj4OA',
page_set=page_set,
name=name,
extra_browser_args=extra_browser_args,
shared_page_state_class=shared_page_state_class)
def RunNavigateSteps(self, action_runner):
super(YoutubeMobilePage, self).RunNavigateSteps(action_runner)
action_runner.WaitForJavaScriptCondition(
'document.getElementById("paginatortarget") !== null')
class LinkedInPage(KeyMobileSitesPage):
""" Why: #12 (Alexa global),Public profile """
def __init__(self,
page_set,
name='LinkedIn',
extra_browser_args=None,
shared_page_state_class=shared_page_state.SharedMobilePageState):
super(LinkedInPage, self).__init__(
url='https://www.linkedin.com/in/linustorvalds',
page_set=page_set,
name=name,
extra_browser_args=extra_browser_args,
shared_page_state_class=shared_page_state_class)
def RunNavigateSteps(self, action_runner):
super(LinkedInPage, self).RunNavigateSteps(action_runner)
action_runner.WaitForJavaScriptCondition(
'document.getElementById("profile-view-scroller") !== null')
class YahooAnswersPage(KeyMobileSitesPage):
""" Why: #1 Alexa reference """
def __init__(self,
page_set,
name='',
extra_browser_args=None,
shared_page_state_class=shared_page_state.SharedMobilePageState):
super(YahooAnswersPage, self).__init__(
# pylint: disable=line-too-long
url='http://answers.yahoo.com/question/index?qid=20110117024343AAopj8f',
page_set=page_set,
name=name,
extra_browser_args=extra_browser_args,
shared_page_state_class=shared_page_state_class)
def RunNavigateSteps(self, action_runner):
super(YahooAnswersPage, self).RunNavigateSteps(action_runner)
action_runner.WaitForElement(text='Other Answers (1 - 20 of 149)')
action_runner.ClickElement(text='Other Answers (1 - 20 of 149)')
class GoogleNewsMobilePage(KeyMobileSitesPage):
""" Why: Google News: accelerated scrolling version """
def __init__(self,
page_set,
name='',
extra_browser_args=None,
shared_page_state_class=shared_page_state.SharedMobilePageState):
super(GoogleNewsMobilePage, self).__init__(
url='http://mobile-news.sandbox.google.com/news/pt1',
page_set=page_set,
name=name,
extra_browser_args=extra_browser_args,
shared_page_state_class=shared_page_state_class)
def RunNavigateSteps(self, action_runner):
super(GoogleNewsMobilePage, self).RunNavigateSteps(action_runner)
action_runner.WaitForJavaScriptCondition(
'typeof NEWS_telemetryReady !== "undefined" && '
'NEWS_telemetryReady == true')
class AmazonNicolasCagePage(KeyMobileSitesPage):
"""
Why: #1 world commerce website by visits; #3 commerce in the US by time spent
"""
def __init__(self,
page_set,
name='',
extra_browser_args=None,
shared_page_state_class=shared_page_state.SharedMobilePageState):
super(AmazonNicolasCagePage, self).__init__(
url='http://www.amazon.com/gp/aw/s/ref=is_box_?k=nicolas+cage',
page_set=page_set,
name=name,
extra_browser_args=extra_browser_args,
shared_page_state_class=shared_page_state_class)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment