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

Side by Side Diff: tools/perf/page_sets/alexa1-10000.py

Issue 806513002: Move make_javascript_deterministic to UserStory. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 6 years 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/benchmarks/sunspider.py ('k') | tools/perf/page_sets/service_worker.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.page_set import PageSet 4 from telemetry.page.page_set import PageSet
5 from telemetry.page.page import Page 5 from telemetry.page.page import Page
6 6
7 7
8 class Alexa1To10000Page(Page): 8 class Alexa1To10000Page(Page):
9 9
10 def __init__(self, url, page_set): 10 def __init__(self, url, page_set):
11 super(Alexa1To10000Page, self).__init__(url=url, page_set=page_set) 11 super(Alexa1To10000Page, self).__init__(url=url, page_set=page_set)
12 self.make_javascript_deterministic = True
13 12
14 def RunSmoothness(self, action_runner): 13 def RunSmoothness(self, action_runner):
15 interaction = action_runner.BeginGestureInteraction( 14 interaction = action_runner.BeginGestureInteraction(
16 'ScrollAction', is_smooth=True) 15 'ScrollAction', is_smooth=True)
17 action_runner.ScrollPage() 16 action_runner.ScrollPage()
18 interaction.End() 17 interaction.End()
19 18
20 19
21 class Alexa1To10000PageSet(PageSet): 20 class Alexa1To10000PageSet(PageSet):
22 """ Top 1-10000 Alexa global. 21 """ Top 1-10000 Alexa global.
23 Generated on 2013-09-03 13:59:53.459117 by rmistry using 22 Generated on 2013-09-03 13:59:53.459117 by rmistry using
24 create_page_set.py. 23 create_page_set.py.
25 """ 24 """
26 25
27 def __init__(self): 26 def __init__(self):
28 super(Alexa1To10000PageSet, self).__init__( 27 super(Alexa1To10000PageSet, self).__init__(user_agent_type='desktop')
29 make_javascript_deterministic=True,
30 user_agent_type='desktop')
31 28
32 urls_list = [ 29 urls_list = [
33 # Why: #1 in Alexa global 30 # Why: #1 in Alexa global
34 'http://www.facebook.com/', 31 'http://www.facebook.com/',
35 # Why: #2 in Alexa global 32 # Why: #2 in Alexa global
36 'http://www.google.com/', 33 'http://www.google.com/',
37 # Why: #3 in Alexa global 34 # Why: #3 in Alexa global
38 'http://www.youtube.com/', 35 'http://www.youtube.com/',
39 # Why: #4 in Alexa global 36 # Why: #4 in Alexa global
40 'http://www.yahoo.com/', 37 'http://www.yahoo.com/',
(...skipping 19330 matching lines...) Expand 10 before | Expand all | Expand 10 after
19371 # Why: #9996 in Alexa global 19368 # Why: #9996 in Alexa global
19372 'http://www.mastemplate.com/', 19369 'http://www.mastemplate.com/',
19373 # Why: #9997 in Alexa global 19370 # Why: #9997 in Alexa global
19374 'http://www.bolha.com/', 19371 'http://www.bolha.com/',
19375 # Why: #9998 in Alexa global 19372 # Why: #9998 in Alexa global
19376 'http://www.tastyplay.com/', 19373 'http://www.tastyplay.com/',
19377 # Why: #9999 in Alexa global 19374 # Why: #9999 in Alexa global
19378 'http://www.busuk.org/'] 19375 'http://www.busuk.org/']
19379 for url in urls_list: 19376 for url in urls_list:
19380 self.AddUserStory(Alexa1To10000Page(url, self)) 19377 self.AddUserStory(Alexa1To10000Page(url, self))
OLDNEW
« no previous file with comments | « tools/perf/benchmarks/sunspider.py ('k') | tools/perf/page_sets/service_worker.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698