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

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

Issue 1458083003: [Telemetry + tools/perf] Modify the pylint disable message to use symbolic name (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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
« no previous file with comments | « tools/perf/page_sets/intl_ko_th_vi.py ('k') | tools/perf/page_sets/key_mobile_sites_pages.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 import story 5 from telemetry import story
6 6
7 7
8 class KeyDesktopSitesPage(page_module.Page): 8 class KeyDesktopSitesPage(page_module.Page):
9 9
10 def __init__(self, url, page_set): 10 def __init__(self, url, page_set):
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 with action_runner.CreateGestureInteraction('ScrollAction'): 81 with action_runner.CreateGestureInteraction('ScrollAction'):
82 action_runner.ScrollPage() 82 action_runner.ScrollPage()
83 action_runner.WaitForJavaScriptCondition( 83 action_runner.WaitForJavaScriptCondition(
84 'document.getElementsByClassName("doclistview-list").length') 84 'document.getElementsByClassName("doclistview-list").length')
85 85
86 86
87 class GoogleDocPage(KeyDesktopSitesPage): 87 class GoogleDocPage(KeyDesktopSitesPage):
88 88
89 def __init__(self, page_set): 89 def __init__(self, page_set):
90 super(GoogleDocPage, self).__init__( 90 super(GoogleDocPage, self).__init__(
91 # pylint: disable=C0301 91 # pylint: disable=line-too-long
92 url='https://docs.google.com/a/google.com/document/d/1XMAtPiVFZfItsMUOYl39 v5YA8bcSPe4LDrVO25OdsCU/edit', 92 url='https://docs.google.com/a/google.com/document/d/1XMAtPiVFZfItsMUOYl39 v5YA8bcSPe4LDrVO25OdsCU/edit',
93 page_set=page_set) 93 page_set=page_set)
94 94
95 self.scrollable_element_function = ''' 95 self.scrollable_element_function = '''
96 function(callback) { 96 function(callback) {
97 callback(document.getElementsByClassName('kix-appview-editor')[0]); 97 callback(document.getElementsByClassName('kix-appview-editor')[0]);
98 }''' 98 }'''
99 self.credentials = 'google' 99 self.credentials = 'google'
100 100
101 def RunPageInteractions(self, action_runner): 101 def RunPageInteractions(self, action_runner):
(...skipping 670 matching lines...) Expand 10 before | Expand all | Expand 10 after
772 'http://www.news.com.au/', 772 'http://www.news.com.au/',
773 'http://www.cbsnews.com/', 773 'http://www.cbsnews.com/',
774 'http://www.examiner.com/', 774 'http://www.examiner.com/',
775 'http://www.cnbc.com/', 775 'http://www.cnbc.com/',
776 'http://www.alarabiya.net/default.html', 776 'http://www.alarabiya.net/default.html',
777 'http://www.time.com/time/', 777 'http://www.time.com/time/',
778 'http://www.foxnews.com/politics/index.html', 778 'http://www.foxnews.com/politics/index.html',
779 'http://www.smh.com.au/', 779 'http://www.smh.com.au/',
780 'http://www.businessweek.com/', 780 'http://www.businessweek.com/',
781 'http://www.nationalgeographic.com/', 781 'http://www.nationalgeographic.com/',
782 # pylint: disable=C0301 782 # pylint: disable=line-too-long
783 'http://www.wunderground.com/cgi-bin/findweather/getForecast?query=94035&s p=KCAMOUNT24', 783 'http://www.wunderground.com/cgi-bin/findweather/getForecast?query=94035&s p=KCAMOUNT24',
784 # pylint: disable=C0301 784 # pylint: disable=line-too-long
785 'http://www.accuweather.com/en/search-locations?zipcode=mountain%20view,%2 0ca', 785 'http://www.accuweather.com/en/search-locations?zipcode=mountain%20view,%2 0ca',
786 'http://www.weather.com/weather/right-now/Mountain+View+CA+94043', 786 'http://www.weather.com/weather/right-now/Mountain+View+CA+94043',
787 # pylint: disable=C0301 787 # pylint: disable=line-too-long
788 'http://weather.yahoo.com/united-states/california/mountain-view-12797130/ ', 788 'http://weather.yahoo.com/united-states/california/mountain-view-12797130/ ',
789 'http://www.yr.no/place/Norway/Oslo/Oslo/Oslo/', 789 'http://www.yr.no/place/Norway/Oslo/Oslo/Oslo/',
790 'http://www.metoffice.gov.uk/', 790 'http://www.metoffice.gov.uk/',
791 'http://www.intellicast.com/Local/Weather.aspx?location=USCA0746', 791 'http://www.intellicast.com/Local/Weather.aspx?location=USCA0746',
792 # pylint: disable=C0301 792 # pylint: disable=line-too-long
793 'http://www.shutterstock.com/cat.mhtml?searchterm=google&search_group=&lan g=en&search_source=search_form', 793 'http://www.shutterstock.com/cat.mhtml?searchterm=google&search_group=&lan g=en&search_source=search_form',
794 'http://www.flickr.com/search/?q=monkeys&f=hp', 794 'http://www.flickr.com/search/?q=monkeys&f=hp',
795 # pylint: disable=C0301 795 # pylint: disable=line-too-long
796 'http://www.flickr.com/photos/davidgutierrez/sets/72157604615916402/?page= 3', 796 'http://www.flickr.com/photos/davidgutierrez/sets/72157604615916402/?page= 3',
797 # pylint: disable=C0301 797 # pylint: disable=line-too-long
798 'http://www.flickr.com/photos/davidgutierrez/sets/72157604615916402/show/w ith/4403158307/', 798 'http://www.flickr.com/photos/davidgutierrez/sets/72157604615916402/show/w ith/4403158307/',
799 'http://www.apple.com/iphone/', 799 'http://www.apple.com/iphone/',
800 'http://www.taobao.com/index_global.php', 800 'http://www.taobao.com/index_global.php',
801 'http://hootsuite.com/', 801 'http://hootsuite.com/',
802 'http://www.android.com/', 802 'http://www.android.com/',
803 'https://www.change.org/', 803 'https://www.change.org/',
804 'http://www.nytimes.com/skimmer/#/Technology', 804 'http://www.nytimes.com/skimmer/#/Technology',
805 'http://www.glennbeck.com/', 805 'http://www.glennbeck.com/',
806 'http://www.pengyou.com/mobile?from=loginAndroid', 806 'http://www.pengyou.com/mobile?from=loginAndroid',
807 'http://en.wikipedia.org/wiki/Cat', 807 'http://en.wikipedia.org/wiki/Cat',
808 'http://en.wikipedia.org/wiki/British_Royal_Family', 808 'http://en.wikipedia.org/wiki/British_Royal_Family',
809 'http://9gag.com/gag/5202885', 809 'http://9gag.com/gag/5202885',
810 'http://www.wowwiki.com/World_of_Warcraft:_Mists_of_Pandaria', 810 'http://www.wowwiki.com/World_of_Warcraft:_Mists_of_Pandaria',
811 'http://twitter.github.com/bootstrap/', 811 'http://twitter.github.com/bootstrap/',
812 # pylint: disable=C0301 812 # pylint: disable=line-too-long
813 'http://reviews.cnet.com/8301-13727_7-57431192-263/disable-elastic-scrolli ng-in-os-x/', 813 'http://reviews.cnet.com/8301-13727_7-57431192-263/disable-elastic-scrolli ng-in-os-x/',
814 'http://mlb.com', 814 'http://mlb.com',
815 'http://thenounproject.com/zh-cn/', 815 'http://thenounproject.com/zh-cn/',
816 'http://allrecipes.com/recipe/chicken-pot-pie-ix/', 816 'http://allrecipes.com/recipe/chicken-pot-pie-ix/',
817 'http://www.gamespot.com/', 817 'http://www.gamespot.com/',
818 'http://valleywag.com/', 818 'http://valleywag.com/',
819 # pylint: disable=C0301 819 # pylint: disable=line-too-long
820 'http://gawker.com/5939683/based-on-a-true-story-is-a-rotten-lie-i-hope-yo u-never-believe', 820 'http://gawker.com/5939683/based-on-a-true-story-is-a-rotten-lie-i-hope-yo u-never-believe',
821 'http://www.imdb.com/title/tt0910970/', 821 'http://www.imdb.com/title/tt0910970/',
822 'http://www.html5rocks.com/en/', 822 'http://www.html5rocks.com/en/',
823 # pylint: disable=C0301 823 # pylint: disable=line-too-long
824 'http://athome.kimvallee.com/2010/03/why-to-splurge-on-a-high-end-dishwash er/', 824 'http://athome.kimvallee.com/2010/03/why-to-splurge-on-a-high-end-dishwash er/',
825 ('http://mlb.mlb.com/mlb/gameday/index.jsp?gid=2012_08_31_sfnmlb_chnmlb_1' 825 ('http://mlb.mlb.com/mlb/gameday/index.jsp?gid=2012_08_31_sfnmlb_chnmlb_1'
826 '&mode=wrap#gid=2012_08_31_sfnmlb_chnmlb_1&mode=box'), 826 '&mode=wrap#gid=2012_08_31_sfnmlb_chnmlb_1&mode=box'),
827 'http://nytimes.com', 827 'http://nytimes.com',
828 'http://arstechnica.com', 828 'http://arstechnica.com',
829 'http://pinterest.com', 829 'http://pinterest.com',
830 'http://www.theregister.co.uk/', 830 'http://www.theregister.co.uk/',
831 'http://forum.xda-developers.com/', 831 'http://forum.xda-developers.com/',
832 'http://maps.google.com', 832 'http://maps.google.com',
833 'https://www.google.com/search?num=10&hl=en&site=&tbm=isch&q=cats', 833 'https://www.google.com/search?num=10&hl=en&site=&tbm=isch&q=cats',
834 'http://code.google.com/p/chromium/issues/list', 834 'http://code.google.com/p/chromium/issues/list',
835 ('http://code.google.com/p/chromium/issues/detail?id=142038' 835 ('http://code.google.com/p/chromium/issues/detail?id=142038'
836 '&q=black%20screen%20amd&colspec=ID%20Pri%20Mstone%20ReleaseBlock%20OS' 836 '&q=black%20screen%20amd&colspec=ID%20Pri%20Mstone%20ReleaseBlock%20OS'
837 '%20Area%20Feature%20Status%20Owner%20Summary'), 837 '%20Area%20Feature%20Status%20Owner%20Summary'),
838 'http://mlb.mlb.com/index.jsp', 838 'http://mlb.mlb.com/index.jsp',
839 'http://www.nfl.com/', 839 'http://www.nfl.com/',
840 'http://airbnb.github.com/infinity/demo-on.html', 840 'http://airbnb.github.com/infinity/demo-on.html',
841 'http://habrahabr.ru/post/149892/#habracut' 841 'http://habrahabr.ru/post/149892/#habracut'
842 ] 842 ]
843 843
844 for url in urls_list: 844 for url in urls_list:
845 self.AddStory(KeyDesktopSitesPage(url, self)) 845 self.AddStory(KeyDesktopSitesPage(url, self))
OLDNEW
« no previous file with comments | « tools/perf/page_sets/intl_ko_th_vi.py ('k') | tools/perf/page_sets/key_mobile_sites_pages.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698