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 29 matching lines...) Expand all Loading... |
48 | 46 |
49 class IndexeddbOfflinePageSet(page_set_module.PageSet): | 47 class IndexeddbOfflinePageSet(page_set_module.PageSet): |
50 | 48 |
51 """ Chrome Endure test for IndexedDB. """ | 49 """ Chrome Endure test for IndexedDB. """ |
52 | 50 |
53 def __init__(self): | 51 def __init__(self): |
54 super(IndexeddbOfflinePageSet, self).__init__( | 52 super(IndexeddbOfflinePageSet, self).__init__( |
55 user_agent_type='desktop') | 53 user_agent_type='desktop') |
56 | 54 |
57 self.AddPage(IndexeddbOfflinePage(self)) | 55 self.AddPage(IndexeddbOfflinePage(self)) |
OLD | NEW |