| 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 | 4 | 
| 5 from page_sets.login_helpers import google_login | 5 from page_sets.login_helpers import google_login | 
| 6 | 6 | 
| 7 from telemetry.page import page as page_module | 7 from telemetry.page import page as page_module | 
| 8 from telemetry.page import shared_page_state | 8 from telemetry.page import shared_page_state | 
| 9 | 9 | 
| 10 import os | 10 import os | 
| (...skipping 23 matching lines...) Expand all  Loading... | 
| 34         shared_page_state_class=shared_page_state_class, | 34         shared_page_state_class=shared_page_state_class, | 
| 35         name='https://mail.google.com/mail/') | 35         name='https://mail.google.com/mail/') | 
| 36 | 36 | 
| 37   def RunNavigateSteps(self, action_runner): | 37   def RunNavigateSteps(self, action_runner): | 
| 38     google_login.LoginGoogleAccount(action_runner, 'google', | 38     google_login.LoginGoogleAccount(action_runner, 'google', | 
| 39                                     self.credentials_path) | 39                                     self.credentials_path) | 
| 40     super(GmailPage, self).RunNavigateSteps(action_runner) | 40     super(GmailPage, self).RunNavigateSteps(action_runner) | 
| 41     action_runner.WaitForJavaScriptCondition( | 41     action_runner.WaitForJavaScriptCondition( | 
| 42         'window.gmonkey !== undefined &&' | 42         'window.gmonkey !== undefined &&' | 
| 43         'document.getElementById("gb") !== null') | 43         'document.getElementById("gb") !== null') | 
| 44 |  | 
| 45 class GoogleDocPage(GooglePages): |  | 
| 46   def __init__(self, page_set, |  | 
| 47                shared_page_state_class=shared_page_state.SharedPageState): |  | 
| 48     super(GoogleDocPage, self).__init__( |  | 
| 49         # pylint: disable=line-too-long |  | 
| 50         url='https://docs.google.com/document/d/1X-IKNjtEnx-WW5JIKRLsyhz5sbsat3m
    fTpAPUSX3_s4/view', |  | 
| 51         page_set=page_set, |  | 
| 52         shared_page_state_class=shared_page_state_class) |  | 
| 53 |  | 
| 54   def RunNavigateSteps(self, action_runner): |  | 
| 55     google_login.LoginGoogleAccount(action_runner, 'google', |  | 
| 56                                     self.credentials_path) |  | 
| 57     super(GoogleDocPage, self).RunNavigateSteps(action_runner) |  | 
| 58     action_runner.Wait(2) |  | 
| 59     action_runner.WaitForJavaScriptCondition( |  | 
| 60         'document.getElementsByClassName("kix-appview-editor").length') |  | 
| OLD | NEW | 
|---|