Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(83)

Side by Side Diff: tools/perf/page_sets/key_mobile_sites_repaint.py

Issue 1306083005: [tools/Perf] Disable pylint's long line check for urls (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 from telemetry.page import page as page_module 4 from telemetry.page import page as page_module
5 from telemetry.page import shared_page_state 5 from telemetry.page import shared_page_state
6 from telemetry import story 6 from telemetry import story
7 7
8 from page_sets import key_mobile_sites_pages 8 from page_sets import key_mobile_sites_pages
9 from page_sets import repaint_helpers 9 from page_sets import repaint_helpers
10 10
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 mode=mode, height=height, width=width)) 85 mode=mode, height=height, width=width))
86 86
87 # Why: #11 (Alexa global), google property; some blogger layouts 87 # Why: #11 (Alexa global), google property; some blogger layouts
88 # have infinite scroll but more interesting. 88 # have infinite scroll but more interesting.
89 self.AddStory(KeyMobileSitesRepaintPage( 89 self.AddStory(KeyMobileSitesRepaintPage(
90 url='http://googlewebmastercentral.blogspot.com/', 90 url='http://googlewebmastercentral.blogspot.com/',
91 page_set=self, name='Blogger', mode=mode, height=height, width=width)) 91 page_set=self, name='Blogger', mode=mode, height=height, width=width))
92 92
93 # Why: #18 (Alexa global), Picked an interesting post """ 93 # Why: #18 (Alexa global), Picked an interesting post """
94 self.AddStory(KeyMobileSitesRepaintPage( 94 self.AddStory(KeyMobileSitesRepaintPage(
95 # pylint: disable=line-too-long
96 url='http://en.blog.wordpress.com/2012/09/04/freshly-pressed-editors-picks -for-august-2012/', 95 url='http://en.blog.wordpress.com/2012/09/04/freshly-pressed-editors-picks -for-august-2012/',
97 page_set=self, 96 page_set=self,
98 name='Wordpress', mode=mode, height=height, width=width)) 97 name='Wordpress', mode=mode, height=height, width=width))
99 98
100 # Why: #6 (Alexa) most visited worldwide, picked an interesting page 99 # Why: #6 (Alexa) most visited worldwide, picked an interesting page
101 self.AddStory(KeyMobileSitesRepaintPage( 100 self.AddStory(KeyMobileSitesRepaintPage(
102 url='http://en.wikipedia.org/wiki/Wikipedia', 101 url='http://en.wikipedia.org/wiki/Wikipedia',
103 page_set=self, 102 page_set=self,
104 name='Wikipedia (1 tab)', mode=mode, height=height, width=width)) 103 name='Wikipedia (1 tab)', mode=mode, height=height, width=width))
105 104
(...skipping 29 matching lines...) Expand all
135 mode=mode, width=width, height=height)) 134 mode=mode, width=width, height=height))
136 135
137 # Why: Problematic use of fixed position elements """ 136 # Why: Problematic use of fixed position elements """
138 self.AddStory(KeyMobileSitesRepaintPage( 137 self.AddStory(KeyMobileSitesRepaintPage(
139 url='http://www.boingboing.net', page_set=self, labels=['fastpath'], 138 url='http://www.boingboing.net', page_set=self, labels=['fastpath'],
140 mode=mode, width=width, height=height)) 139 mode=mode, width=width, height=height))
141 140
142 # Add simple pages with no custom navigation logic or labels. 141 # Add simple pages with no custom navigation logic or labels.
143 urls_list = [ 142 urls_list = [
144 # Why: Social; top Google property; Public profile; infinite scrolls. 143 # Why: Social; top Google property; Public profile; infinite scrolls.
145 # pylint: disable=line-too-long
146 'https://plus.google.com/app/basic/110031535020051778989/posts?source=appp romo', 144 'https://plus.google.com/app/basic/110031535020051778989/posts?source=appp romo',
147 # Why: crbug.com/242544 145 # Why: crbug.com/242544
148 ('http://www.androidpolice.com/2012/10/03/rumor-evidence-mounts-that-an-' 146 ('http://www.androidpolice.com/2012/10/03/rumor-evidence-mounts-that-an-'
149 'lg-optimus-g-nexus-is-coming-along-with-a-nexus-phone-certification-' 147 'lg-optimus-g-nexus-is-coming-along-with-a-nexus-phone-certification-'
150 'program/'), 148 'program/'),
151 # Why: crbug.com/149958 149 # Why: crbug.com/149958
152 'http://gsp.ro', 150 'http://gsp.ro',
153 # Why: Top tech blog 151 # Why: Top tech blog
154 'http://theverge.com', 152 'http://theverge.com',
155 # Why: Top tech site 153 # Why: Top tech site
156 'http://digg.com', 154 'http://digg.com',
157 # Why: Top Google property; a Google tab is often open 155 # Why: Top Google property; a Google tab is often open
158 'https://www.google.com/#hl=en&q=barack+obama', 156 'https://www.google.com/#hl=en&q=barack+obama',
159 # Why: #1 news worldwide (Alexa global) 157 # Why: #1 news worldwide (Alexa global)
160 'http://news.yahoo.com', 158 'http://news.yahoo.com',
161 # Why: #2 news worldwide 159 # Why: #2 news worldwide
162 'http://www.cnn.com', 160 'http://www.cnn.com',
163 # Why: #1 commerce website by time spent by users in US 161 # Why: #1 commerce website by time spent by users in US
164 'http://shop.mobileweb.ebay.com/searchresults?kw=viking+helmet', 162 'http://shop.mobileweb.ebay.com/searchresults?kw=viking+helmet',
165 # Why: #1 Alexa recreation 163 # Why: #1 Alexa recreation
166 # pylint: disable=line-too-long
167 'http://www.booking.com/searchresults.html?src=searchresults&latitude=65.0 500&longitude=25.4667', 164 'http://www.booking.com/searchresults.html?src=searchresults&latitude=65.0 500&longitude=25.4667',
168 # Why: #1 Alexa sports 165 # Why: #1 Alexa sports
169 'http://sports.yahoo.com/', 166 'http://sports.yahoo.com/',
170 # Why: Top tech blog 167 # Why: Top tech blog
171 'http://techcrunch.com', 168 'http://techcrunch.com',
172 # Why: #6 Alexa sports 169 # Why: #6 Alexa sports
173 'http://mlb.com/', 170 'http://mlb.com/',
174 # Why: #14 Alexa California 171 # Why: #14 Alexa California
175 'http://www.sfgate.com/', 172 'http://www.sfgate.com/',
176 # Why: Non-latin character set 173 # Why: Non-latin character set
177 'http://worldjournal.com/', 174 'http://worldjournal.com/',
178 # Why: Mobile wiki 175 # Why: Mobile wiki
179 'http://www.wowwiki.com/World_of_Warcraft:_Mists_of_Pandaria', 176 'http://www.wowwiki.com/World_of_Warcraft:_Mists_of_Pandaria',
180 # Why: #15 Alexa news 177 # Why: #15 Alexa news
181 'http://online.wsj.com/home-page', 178 'http://online.wsj.com/home-page',
182 # Why: Image-heavy mobile site 179 # Why: Image-heavy mobile site
183 'http://www.deviantart.com/', 180 'http://www.deviantart.com/',
184 # Why: Top search engine 181 # Why: Top search engine
185 ('http://www.baidu.com/s?wd=barack+obama&rsv_bp=0&rsv_spt=3&rsv_sug3=9&' 182 ('http://www.baidu.com/s?wd=barack+obama&rsv_bp=0&rsv_spt=3&rsv_sug3=9&'
186 'rsv_sug=0&rsv_sug4=3824&rsv_sug1=3&inputT=4920'), 183 'rsv_sug=0&rsv_sug4=3824&rsv_sug1=3&inputT=4920'),
187 # Why: Top search engine 184 # Why: Top search engine
188 'http://www.bing.com/search?q=sloths', 185 'http://www.bing.com/search?q=sloths',
189 # Why: Good example of poor initial scrolling 186 # Why: Good example of poor initial scrolling
190 'http://ftw.usatoday.com/2014/05/spelling-bee-rules-shenanigans' 187 'http://ftw.usatoday.com/2014/05/spelling-bee-rules-shenanigans'
191 ] 188 ]
192 189
193 for url in urls_list: 190 for url in urls_list:
194 self.AddStory(KeyMobileSitesRepaintPage( 191 self.AddStory(KeyMobileSitesRepaintPage(
195 url, self, mode=mode, height=height, width=width)) 192 url, self, mode=mode, height=height, width=width))
OLDNEW
« no previous file with comments | « tools/perf/page_sets/key_mobile_sites.py ('k') | tools/perf/page_sets/key_mobile_sites_smooth.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698