| 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 | 4 |
| 5 import shutil | 5 import shutil |
| 6 | 6 |
| 7 from profile_creators import profile_generator | 7 from profile_creators import profile_generator |
| 8 from profile_creators import small_profile_extender | 8 from profile_creators import small_profile_extender |
| 9 from telemetry.page import page as page_module | 9 from telemetry.page import page as page_module |
| 10 from telemetry.page import shared_page_state | 10 from telemetry.page import shared_page_state |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 # Why: Alexa news #55 | 87 # Why: Alexa news #55 |
| 88 ('http://www.economist.com/news/science-and-technology/21573529-small-' | 88 ('http://www.economist.com/news/science-and-technology/21573529-small-' |
| 89 'models-cosmic-phenomena-are-shedding-light-real-thing-how-build'), | 89 'models-cosmic-phenomena-are-shedding-light-real-thing-how-build'), |
| 90 # Why: Alexa news #67 | 90 # Why: Alexa news #67 |
| 91 'http://www.theonion.com', | 91 'http://www.theonion.com', |
| 92 'http://arstechnica.com/', | 92 'http://arstechnica.com/', |
| 93 # Why: Alexa home #10 | 93 # Why: Alexa home #10 |
| 94 'http://allrecipes.com/Recipe/Pull-Apart-Hot-Cross-Buns/Detail.aspx', | 94 'http://allrecipes.com/Recipe/Pull-Apart-Hot-Cross-Buns/Detail.aspx', |
| 95 'http://www.html5rocks.com/en/', | 95 'http://www.html5rocks.com/en/', |
| 96 'http://www.mlb.com/', | 96 'http://www.mlb.com/', |
| 97 # pylint: disable=C0301 | 97 # pylint: disable=line-too-long |
| 98 'http://gawker.com/5939683/based-on-a-true-story-is-a-rotten-lie-i-hope-yo
u-never-believe', | 98 'http://gawker.com/5939683/based-on-a-true-story-is-a-rotten-lie-i-hope-yo
u-never-believe', |
| 99 'http://www.imdb.com/title/tt0910970/', | 99 'http://www.imdb.com/title/tt0910970/', |
| 100 'http://www.flickr.com/search/?q=monkeys&f=hp', | 100 'http://www.flickr.com/search/?q=monkeys&f=hp', |
| 101 'http://money.cnn.com/', | 101 'http://money.cnn.com/', |
| 102 'http://www.nationalgeographic.com/', | 102 'http://www.nationalgeographic.com/', |
| 103 'http://premierleague.com', | 103 'http://premierleague.com', |
| 104 'http://www.osubeavers.com/', | 104 'http://www.osubeavers.com/', |
| 105 'http://walgreens.com', | 105 'http://walgreens.com', |
| 106 'http://colorado.edu', | 106 'http://colorado.edu', |
| 107 ('http://www.ticketmaster.com/JAY-Z-and-Justin-Timberlake-tickets/artist/' | 107 ('http://www.ticketmaster.com/JAY-Z-and-Justin-Timberlake-tickets/artist/' |
| 108 '1837448?brand=none&tm_link=tm_homeA_rc_name2'), | 108 '1837448?brand=none&tm_link=tm_homeA_rc_name2'), |
| 109 # pylint: disable=C0301 | 109 # pylint: disable=line-too-long |
| 110 'http://www.theverge.com/2013/3/5/4061684/inside-ted-the-smartest-bubble-i
n-the-world', | 110 'http://www.theverge.com/2013/3/5/4061684/inside-ted-the-smartest-bubble-i
n-the-world', |
| 111 'http://www.airbnb.com/', | 111 'http://www.airbnb.com/', |
| 112 'http://www.ign.com/', | 112 'http://www.ign.com/', |
| 113 # Why: Alexa health #25 | 113 # Why: Alexa health #25 |
| 114 'http://www.fda.gov', | 114 'http://www.fda.gov', |
| 115 ] | 115 ] |
| 116 | 116 |
| 117 for url in urls_list: | 117 for url in urls_list: |
| 118 self.AddStory( | 118 self.AddStory( |
| 119 page_class(url, self, run_no_page_interactions)) | 119 page_class(url, self, run_no_page_interactions)) |
| 120 | 120 |
| 121 | 121 |
| 122 class Typical25PageSetWithProfile(Typical25PageSet): | 122 class Typical25PageSetWithProfile(Typical25PageSet): |
| 123 """ Similar to Typical25PageSet, but with a non-empty profile. """ | 123 """ Similar to Typical25PageSet, but with a non-empty profile. """ |
| 124 | 124 |
| 125 def __init__(self, run_no_page_interactions=False): | 125 def __init__(self, run_no_page_interactions=False): |
| 126 super(Typical25PageSetWithProfile, self).__init__( | 126 super(Typical25PageSetWithProfile, self).__init__( |
| 127 run_no_page_interactions=run_no_page_interactions, | 127 run_no_page_interactions=run_no_page_interactions, |
| 128 page_class=Typical25PageWithProfile) | 128 page_class=Typical25PageWithProfile) |
| OLD | NEW |