OLD | NEW |
---|---|
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 | 8 |
9 URL_LIST = [ | 9 URL_LIST = [ |
10 # Why: #1 (Alexa) most visited page worldwide, picked a reasonable | 10 # Why: #1 (Alexa) most visited page worldwide, picked a reasonable |
11 # search term | 11 # search term |
12 'https://www.google.com/#hl=en&q=science', | 12 'https://www.google.co.uk/#hl=en&q=science', |
13 # Why: #2 (Alexa) most visited page worldwide, picked the most liked | 13 # Why: #2 (Alexa) most visited page worldwide, picked the most liked |
14 # page | 14 # page |
15 'https://m.facebook.com/rihanna', | 15 'https://m.facebook.com/rihanna', |
16 # Why: #3 (Alexa) most visited page worldwide, picked a reasonable | 16 # Why: #3 (Alexa) most visited page worldwide, picked a reasonable |
17 # search term | 17 # search term |
18 'http://m.youtube.com/results?q=science', | 18 'http://m.youtube.com/results?q=science', |
19 # Why: #4 (Alexa) most visited page worldwide, picked a reasonable search | 19 # Why: #4 (Alexa) most visited page worldwide, picked a reasonable search |
20 # term | 20 # term |
21 'http://search.yahoo.com/search;_ylt=?p=google', | 21 'http://search.yahoo.com/search;_ylt=?p=google', |
22 # Why: #5 (Alexa) most visited page worldwide, picked a reasonable search | 22 # Why: #5 (Alexa) most visited page worldwide, picked a reasonable search |
23 # term | 23 # term |
24 'http://www.baidu.com/s?word=google', | 24 'http://www.baidu.com/s?word=google', |
25 # Why: #6 (Alexa) most visited page worldwide, picked a reasonable page | 25 # Why: #6 (Alexa) most visited page worldwide, picked a reasonable page |
26 'http://en.m.wikipedia.org/wiki/Science', | 26 'http://en.m.wikipedia.org/wiki/Science', |
27 # Why: #10 (Alexa) most visited page worldwide, picked the most followed | 27 # Why: #10 (Alexa) most visited page worldwide, picked the most followed |
28 # user | 28 # user |
29 'https://mobile.twitter.com/justinbieber?skip_interstitial=true', | 29 'https://mobile.twitter.com/justinbieber?skip_interstitial=true', |
30 # Why: #11 (Alexa) most visited page worldwide, picked a reasonable | 30 # Why: #11 (Alexa) most visited page worldwide, picked a reasonable |
31 # page | 31 # page |
32 'http://www.amazon.com/gp/aw/s/?k=nexus', | 32 'http://www.amazon.com/gp/aw/s/?k=nexus', |
33 # Why: #13 (Alexa) most visited page worldwide, picked the first real | 33 # Why: #13 (Alexa) most visited page worldwide, picked the first real |
34 # page | 34 # page |
35 'http://m.taobao.com/channel/act/mobile/20131111-women.html', | 35 # (mythria) Updated the page when recording a new wpr. The old page |
petrcermak
2016/07/12 14:28:16
In my opinion, this should have been just a commen
mythria
2016/07/12 14:34:58
Thanks Petr. Done.
| |
36 # no longer contains any data. It just had a couple of links. | |
37 'http://m.intl.taobao.com/group-purchase.html', | |
36 # Why: #18 (Alexa) most visited page worldwide, picked a reasonable | 38 # Why: #18 (Alexa) most visited page worldwide, picked a reasonable |
37 # search term | 39 # search term |
38 'http://yandex.ru/touchsearch?text=science', | 40 'http://yandex.ru/touchsearch?text=science', |
39 ] | 41 ] |
40 | 42 |
41 | 43 |
42 class Top10MobilePage(page_module.Page): | 44 class Top10MobilePage(page_module.Page): |
43 | 45 |
44 def __init__(self, url, page_set, run_no_page_interactions, | 46 def __init__(self, url, page_set, run_no_page_interactions, |
45 collect_memory_dumps): | 47 collect_memory_dumps): |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
82 super(Top10MobilePageSet, self).__init__(run_no_page_interactions) | 84 super(Top10MobilePageSet, self).__init__(run_no_page_interactions) |
83 | 85 |
84 | 86 |
85 class Top10MobileMemoryPageSet(_Top10MobilePageSet): | 87 class Top10MobileMemoryPageSet(_Top10MobilePageSet): |
86 """ Top 10 mobile sites for measuring memory""" | 88 """ Top 10 mobile sites for measuring memory""" |
87 | 89 |
88 def __init__(self): | 90 def __init__(self): |
89 super(Top10MobileMemoryPageSet, self).__init__( | 91 super(Top10MobileMemoryPageSet, self).__init__( |
90 run_no_page_interactions=False, collect_memory_dumps=True) | 92 run_no_page_interactions=False, collect_memory_dumps=True) |
91 | 93 |
OLD | NEW |