Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 TIME_TO_WAIT_BEFORE_STARTING_IN_SECONDS = 5 | 8 TIME_TO_WAIT_BEFORE_STARTING_IN_SECONDS = 5 |
| 9 SCROLL_TIMEOUT_IN_SECONDS = 120 | 9 SCROLL_TIMEOUT_IN_SECONDS = 120 |
| 10 | 10 |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 64 archive_data_file='data/infinite_scroll.json', | 64 archive_data_file='data/infinite_scroll.json', |
| 65 cloud_storage_bucket=story.PARTNER_BUCKET) | 65 cloud_storage_bucket=story.PARTNER_BUCKET) |
| 66 # The scroll distance is chosen such that the page can be scrolled | 66 # The scroll distance is chosen such that the page can be scrolled |
| 67 # continuously through the test without hitting the end of the page. | 67 # continuously through the test without hitting the end of the page. |
| 68 SCROLL_FAR = 60 | 68 SCROLL_FAR = 60 |
| 69 SCROLL_PAGE = 1 | 69 SCROLL_PAGE = 1 |
| 70 pages = [ | 70 pages = [ |
| 71 ('https://www.facebook.com/shakira', 'facebook', SCROLL_FAR, 0, 0), | 71 ('https://www.facebook.com/shakira', 'facebook', SCROLL_FAR, 0, 0), |
| 72 ('https://twitter.com/taylorswift13', 'twitter', SCROLL_PAGE, 10, 30), | 72 ('https://twitter.com/taylorswift13', 'twitter', SCROLL_PAGE, 10, 30), |
| 73 ('http://techcrunch.tumblr.com/', 'tumblr', SCROLL_FAR, 0, 0), | 73 ('http://techcrunch.tumblr.com/', 'tumblr', SCROLL_FAR, 0, 0), |
| 74 ('https://www.flickr.com/explore', 'flickr', SCROLL_FAR, 0, 0), | 74 ('https://www.flickr.com/explore', 'flickr', SCROLL_FAR, 0, 0) |
| 75 ('https://meta.discourse.org/t/the-official-discourse-tags-plugin-discou rse-tagging/26482', | 75 # TODO(crbug.com/612153): This page needs to be rerecorded due to an |
| 76 'discourse', SCROLL_PAGE, 10, 30) | 76 # expired SSL certificate, but can't be due to problems with WPR. |
| 77 # ('https://meta.discourse.org/t/the-official-discourse-tags-plugin-disc ourse-tagging/26482', | |
|
nednguyen
2016/05/17 17:59:26
this may trigger a line-too-long presubmit failure
| |
| 78 # 'discourse', SCROLL_PAGE, 10, 30) | |
| 77 ] | 79 ] |
| 78 for (url, name, scroll_amount, delay, repeat) in pages: | 80 for (url, name, scroll_amount, delay, repeat) in pages: |
| 79 self.AddStory( | 81 self.AddStory( |
| 80 InfiniteScrollPage(url, self, name, scroll_amount, delay, repeat)) | 82 InfiniteScrollPage(url, self, name, scroll_amount, delay, repeat)) |
| OLD | NEW |