| OLD | NEW |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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 page_sets import mobile_facebook_page | 4 from page_sets import mobile_facebook_page |
| 5 from telemetry.page import page as page_module | 5 from telemetry.page import page as page_module |
| 6 from telemetry.page import shared_page_state | 6 from telemetry.page import shared_page_state |
| 7 from telemetry import story | 7 from telemetry import story |
| 8 | 8 |
| 9 TIME_TO_WAIT_BEFORE_STARTING_IN_SECONDS = 5 | 9 TIME_TO_WAIT_BEFORE_STARTING_IN_SECONDS = 5 |
| 10 SCROLL_TIMEOUT_IN_SECONDS = 120 | 10 SCROLL_TIMEOUT_IN_SECONDS = 120 |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 def __init__(self): | 77 def __init__(self): |
| 78 super(MobileInfiniteScrollPageSet, self).__init__( | 78 super(MobileInfiniteScrollPageSet, self).__init__( |
| 79 archive_data_file='data/mobile_infinite_scroll.json', | 79 archive_data_file='data/mobile_infinite_scroll.json', |
| 80 cloud_storage_bucket=story.PARTNER_BUCKET) | 80 cloud_storage_bucket=story.PARTNER_BUCKET) |
| 81 # The scroll distance is chosen such that the page can be scrolled | 81 # The scroll distance is chosen such that the page can be scrolled |
| 82 # continuously through the test without hitting the end of the page. | 82 # continuously through the test without hitting the end of the page. |
| 83 SCROLL_FAR = 60 | 83 SCROLL_FAR = 60 |
| 84 SCROLL_PAGE = 1 | 84 SCROLL_PAGE = 1 |
| 85 pages = [ | 85 pages = [ |
| 86 ('https://m.facebook.com/shakira', 'facebook', SCROLL_FAR, 0, 0), | 86 ('https://m.facebook.com/shakira', 'facebook', SCROLL_FAR, 0, 0), |
| 87 ('https://mobile.twitter.com/taylorswift13', 'twitter', SCROLL_PAGE, 10,
30), | 87 ('https://www.pinterest.com/all', 'pinterest', SCROLL_FAR, 0, 0), |
| 88 ('http://techcrunch.tumblr.com/', 'tumblr', SCROLL_FAR, 0, 0), | 88 ('http://techcrunch.tumblr.com/', 'tumblr', SCROLL_FAR, 0, 0), |
| 89 ('https://www.flickr.com/explore', 'flickr', SCROLL_FAR, 0, 0), | 89 ('https://www.flickr.com/explore', 'flickr', SCROLL_FAR, 0, 0), |
| 90 ('https://meta.discourse.org/t/the-official-discourse-tags-plugin-discou
rse-tagging/26482', | 90 ('https://meta.discourse.org/t/the-official-discourse-tags-plugin-discou
rse-tagging/26482', |
| 91 'discourse', SCROLL_PAGE, 10, 30) | 91 'discourse', SCROLL_PAGE, 10, 30) |
| 92 ] | 92 ] |
| 93 self.AddStory( | 93 self.AddStory( |
| 94 MobileInfiniteScrollFacebookPage(pages[0][0], self, pages[0][1], | 94 MobileInfiniteScrollFacebookPage(pages[0][0], self, pages[0][1], |
| 95 pages[0][2], pages[0][3], pages[0][4])) | 95 pages[0][2], pages[0][3], pages[0][4])) |
| 96 for (url, name, scroll_amount, delay, repeat) in pages[1:]: | 96 for (url, name, scroll_amount, delay, repeat) in pages[1:]: |
| 97 self.AddStory( | 97 self.AddStory( |
| 98 MobileInfiniteScrollPage(url, self, name, scroll_amount, delay, repeat)) | 98 MobileInfiniteScrollPage(url, self, name, scroll_amount, delay, repeat)) |
| OLD | NEW |