| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 """ Chrome Endure test for GMail. """ | 53 """ Chrome Endure test for GMail. """ |
| 56 | 54 |
| 57 def __init__(self): | 55 def __init__(self): |
| 58 super(GmailAltTwoLabelsPageSet, self).__init__( | 56 super(GmailAltTwoLabelsPageSet, self).__init__( |
| 59 credentials_path='data/credentials.json', | 57 credentials_path='data/credentials.json', |
| 60 user_agent_type='desktop', | 58 user_agent_type='desktop', |
| 61 archive_data_file='data/gmail_alt_two_labels.json', | 59 archive_data_file='data/gmail_alt_two_labels.json', |
| 62 bucket=page_set_module.PUBLIC_BUCKET) | 60 bucket=page_set_module.PUBLIC_BUCKET) |
| 63 | 61 |
| 64 self.AddPage(GmailAltTwoLabelsPage(self)) | 62 self.AddPage(GmailAltTwoLabelsPage(self)) |
| OLD | NEW |