Commit e57ca477 authored by Amy Qiu's avatar Amy Qiu Committed by Commit Bot

Rename simple_mobile_sites pages for consistency

Rename so that pages follow the same naming convention as those in the
rendering page sets

Bug: 847857
Change-Id: I2fcd7ddd3b0b67c00d457f1a47ed19c4686ce9e5
Reviewed-on: https://chromium-review.googlesource.com/1081017Reviewed-by: default avatarNed Nguyen <nednguyen@google.com>
Commit-Queue: Amy Qiu <amyqiu@google.com>
Cr-Commit-Position: refs/heads/master@{#563616}
parent a7394ffc
...@@ -200,7 +200,7 @@ crbug.com/685342 [ Nexus_7 ] smoothness.pathological_mobile_sites/* [ Skip ] ...@@ -200,7 +200,7 @@ crbug.com/685342 [ Nexus_7 ] smoothness.pathological_mobile_sites/* [ Skip ]
crbug.com/822925 [ Android_Webview ] smoothness.pathological_mobile_sites/http://sports.yahoo.com/ [ Skip ] crbug.com/822925 [ Android_Webview ] smoothness.pathological_mobile_sites/http://sports.yahoo.com/ [ Skip ]
# Benchmark: smoothness.simple_mobile_sites # Benchmark: smoothness.simple_mobile_sites
crbug.com/750833 [ Android_Webview ] smoothness.simple_mobile_sites/https://www.flickr.com/ [ Skip ] crbug.com/750833 [ Android_Webview ] smoothness.simple_mobile_sites/flickr_scroll [ Skip ]
# Benchmark: smoothness.sync_scroll.key_mobile_sites_smooth # Benchmark: smoothness.sync_scroll.key_mobile_sites_smooth
crbug.com/756119 [ All ] smoothness.sync_scroll.key_mobile_sites_smooth/digg [ Skip ] crbug.com/756119 [ All ] smoothness.sync_scroll.key_mobile_sites_smooth/digg [ Skip ]
......
{ {
"archives": { "archives": {
"http://m.nytimes.com/": { "nytimes_scroll": {
"DEFAULT": "simple_mobile_sites_002.wprgo" "DEFAULT": "simple_mobile_sites_002.wprgo"
}, },
"http://m.us.wsj.com/": { "ebay_scroll": {
"DEFAULT": "simple_mobile_sites_002.wprgo" "DEFAULT": "simple_mobile_sites_002.wprgo"
}, },
"http://www.apple.com/mac/": { "nyc_gov_scroll": {
"DEFAULT": "simple_mobile_sites_002.wprgo" "DEFAULT": "simple_mobile_sites_002.wprgo"
}, },
"http://www.ebay.co.uk/": { "flickr_scroll": {
"DEFAULT": "simple_mobile_sites_002.wprgo"
},
"http://www.nyc.gov": {
"DEFAULT": "simple_mobile_sites_002.wprgo"
},
"https://www.flickr.com/": {
"DEFAULT": "simple_mobile_sites_002.wprgo"
},
"https://www.yahoo.com/": {
"DEFAULT": "simple_mobile_sites_002.wprgo" "DEFAULT": "simple_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.", "description": "Describes the Web Page Replay archives for a story set. Don't edit by hand! Use record_wpr for updating.",
"platform_specific": true "platform_specific": true
} }
\ No newline at end of file
...@@ -6,25 +6,20 @@ from telemetry.page import shared_page_state ...@@ -6,25 +6,20 @@ from telemetry.page import shared_page_state
from telemetry import story from telemetry import story
class SimplePage(page_module.Page): class SimpleScrollPage(page_module.Page):
def __init__(self, url, page_set): def __init__(self, name, url, page_set):
super(SimplePage, self).__init__( super(SimpleScrollPage, self).__init__(
name=name,
url=url, url=url,
page_set=page_set, page_set=page_set,
shared_page_state_class=shared_page_state.Shared10InchTabletPageState, shared_page_state_class=shared_page_state.Shared10InchTabletPageState)
name=url)
def RunNavigateSteps(self, action_runner): def RunNavigateSteps(self, action_runner):
super(SimplePage, self).RunNavigateSteps(action_runner) super(SimpleScrollPage, self).RunNavigateSteps(action_runner)
# TODO(epenner): Remove this wait (http://crbug.com/366933) # TODO(epenner): Remove this wait (http://crbug.com/366933)
action_runner.Wait(5) action_runner.Wait(5)
class SimpleScrollPage(SimplePage):
def __init__(self, url, page_set):
super(SimpleScrollPage, self).__init__(url=url, page_set=page_set)
def RunPageInteractions(self, action_runner): def RunPageInteractions(self, action_runner):
# Make the scroll longer to reduce noise. # Make the scroll longer to reduce noise.
with action_runner.CreateGestureInteraction('ScrollAction'): with action_runner.CreateGestureInteraction('ScrollAction'):
...@@ -41,11 +36,13 @@ class SimpleMobileSitesPageSet(story.StorySet): ...@@ -41,11 +36,13 @@ class SimpleMobileSitesPageSet(story.StorySet):
scroll_page_list = [ scroll_page_list = [
# Why: Scrolls moderately complex pages (up to 60 layers) # Why: Scrolls moderately complex pages (up to 60 layers)
'http://www.ebay.co.uk/', ('ebay_scroll', 'http://www.ebay.co.uk/'),
'https://www.flickr.com/', ('flickr_scroll', 'https://www.flickr.com/'),
'http://www.nyc.gov', ('nyc_gov_scroll', 'http://www.nyc.gov'),
'http://m.nytimes.com/' ('nytimes_scroll', 'http://m.nytimes.com/')
] ]
for url in scroll_page_list: for name,url in scroll_page_list:
self.AddStory(SimpleScrollPage(url, self)) self.AddStory(SimpleScrollPage(name=name,
url=url,
page_set=self))
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