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 | 4 |
5 import re | 5 import re |
6 | 6 |
7 # pylint: disable=W0401,W0614 | |
8 from telemetry.page.actions.all_page_actions import * | |
9 from telemetry.page import page as page_module | 7 from telemetry.page import page as page_module |
10 from telemetry.page import page_set as page_set_module | 8 from telemetry.page import page_set as page_set_module |
11 | 9 |
12 | 10 |
13 def _CreateXpathFunction(xpath): | 11 def _CreateXpathFunction(xpath): |
14 return ('document.evaluate("%s",' | 12 return ('document.evaluate("%s",' |
15 'document,' | 13 'document,' |
16 'null,' | 14 'null,' |
17 'XPathResult.FIRST_ORDERED_NODE_TYPE,' | 15 'XPathResult.FIRST_ORDERED_NODE_TYPE,' |
18 'null)' | 16 'null)' |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 """ Chrome Endure test for GMail. """ | 65 """ Chrome Endure test for GMail. """ |
68 | 66 |
69 def __init__(self): | 67 def __init__(self): |
70 super(GmailAltThreadlistConversationPageSet, self).__init__( | 68 super(GmailAltThreadlistConversationPageSet, self).__init__( |
71 credentials_path='data/credentials.json', | 69 credentials_path='data/credentials.json', |
72 user_agent_type='desktop', | 70 user_agent_type='desktop', |
73 archive_data_file='data/gmail_alt_threadlist_conversation.json', | 71 archive_data_file='data/gmail_alt_threadlist_conversation.json', |
74 bucket=page_set_module.PUBLIC_BUCKET) | 72 bucket=page_set_module.PUBLIC_BUCKET) |
75 | 73 |
76 self.AddPage(GmailAltThreadlistConversationPage(self)) | 74 self.AddPage(GmailAltThreadlistConversationPage(self)) |
OLD | NEW |