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

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

Issue 286543004: [telemetry] Fix testPageSetSmoke. The archive_data_file should be relative to the page set. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: base_dir Created 6 years, 7 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 # pylint: disable=W0401,W0614 4 # pylint: disable=W0401,W0614
5 from telemetry.page.actions.all_page_actions import * 5 from telemetry.page.actions.all_page_actions import *
6 from telemetry.page.page_set import PageSet 6 from telemetry.page.page_set import PageSet
7 from telemetry.page.page import Page 7 from telemetry.page.page import Page
8 8
9 9
10 class Alexa1To10000Page(Page): 10 class Alexa1To10000Page(Page):
11 11
12 def __init__(self, url, page_set): 12 def __init__(self, url, page_set):
13 super(Alexa1To10000Page, self).__init__(url=url, page_set=page_set) 13 super(Alexa1To10000Page, self).__init__(url=url, page_set=page_set)
14 self.make_javascript_deterministic = True 14 self.make_javascript_deterministic = True
15 15
16 def RunSmoothness(self, action_runner): 16 def RunSmoothness(self, action_runner):
17 action_runner.RunAction(ScrollAction()) 17 action_runner.RunAction(ScrollAction())
18 18
19 19
20 class Alexa1To10000PageSet(PageSet): 20 class Alexa1To10000PageSet(PageSet):
21 """ Top 1-10000 Alexa global. 21 """ Top 1-10000 Alexa global.
22 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
23 create_page_set.py. 23 create_page_set.py.
24 """ 24 """
25 25
26 def __init__(self): 26 def __init__(self):
27 super(Alexa1To10000PageSet, self).__init__( 27 super(Alexa1To10000PageSet, self).__init__(
28 make_javascript_deterministic=True, 28 make_javascript_deterministic=True,
29 user_agent_type='desktop', 29 user_agent_type='desktop')
30 # pylint: disable=C0301
31 archive_data_file='/home/default/storage/webpages_archive/10k/alexa1-100 00.json')
32 30
33 urls_list = [ 31 urls_list = [
34 # Why: #1 in Alexa global 32 # Why: #1 in Alexa global
35 'http://www.facebook.com/', 33 'http://www.facebook.com/',
36 # Why: #2 in Alexa global 34 # Why: #2 in Alexa global
37 'http://www.google.com/', 35 'http://www.google.com/',
38 # Why: #3 in Alexa global 36 # Why: #3 in Alexa global
39 'http://www.youtube.com/', 37 'http://www.youtube.com/',
40 # Why: #4 in Alexa global 38 # Why: #4 in Alexa global
41 'http://www.yahoo.com/', 39 'http://www.yahoo.com/',
(...skipping 19330 matching lines...) Expand 10 before | Expand all | Expand 10 after
19372 # Why: #9996 in Alexa global 19370 # Why: #9996 in Alexa global
19373 'http://www.mastemplate.com/', 19371 'http://www.mastemplate.com/',
19374 # Why: #9997 in Alexa global 19372 # Why: #9997 in Alexa global
19375 'http://www.bolha.com/', 19373 'http://www.bolha.com/',
19376 # Why: #9998 in Alexa global 19374 # Why: #9998 in Alexa global
19377 'http://www.tastyplay.com/', 19375 'http://www.tastyplay.com/',
19378 # Why: #9999 in Alexa global 19376 # Why: #9999 in Alexa global
19379 'http://www.busuk.org/'] 19377 'http://www.busuk.org/']
19380 for url in urls_list: 19378 for url in urls_list:
19381 self.AddPage(Alexa1To10000Page(url, self)) 19379 self.AddPage(Alexa1To10000Page(url, self))
OLDNEW
« no previous file with comments | « content/test/gpu/page_sets/page_set_unittest.py ('k') | tools/perf/page_sets/gmail_compose_discard.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698