| 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 # pylint: disable=W0401,W0614 | |
| 5 from telemetry.page.actions.all_page_actions import * | |
| 6 from telemetry.page import page as page_module | 4 from telemetry.page import page as page_module |
| 7 from telemetry.page import page_set as page_set_module | 5 from telemetry.page import page_set as page_set_module |
| 8 | 6 |
| 9 | 7 |
| 10 def _GetCurrentLocation(action_runner): | 8 def _GetCurrentLocation(action_runner): |
| 11 return action_runner.EvaluateJavaScript('document.location.href') | 9 return action_runner.EvaluateJavaScript('document.location.href') |
| 12 | 10 |
| 13 | 11 |
| 14 def _WaitForLocationChange(action_runner, old_href): | 12 def _WaitForLocationChange(action_runner, old_href): |
| 15 action_runner.WaitForJavaScriptCondition( | 13 action_runner.WaitForJavaScriptCondition( |
| (...skipping 546 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 562 # Why: #1 Alexa reference | 560 # Why: #1 Alexa reference |
| 563 'http://answers.yahoo.com', | 561 'http://answers.yahoo.com', |
| 564 # Why: #1 Alexa sports | 562 # Why: #1 Alexa sports |
| 565 'http://sports.yahoo.com/', | 563 'http://sports.yahoo.com/', |
| 566 # Why: top tech blog | 564 # Why: top tech blog |
| 567 'http://techcrunch.com' | 565 'http://techcrunch.com' |
| 568 ] | 566 ] |
| 569 | 567 |
| 570 for url in other_urls: | 568 for url in other_urls: |
| 571 self.AddPage(Top25Page(url, self)) | 569 self.AddPage(Top25Page(url, self)) |
| OLD | NEW |