OLD | NEW |
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 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 import os | 4 import os |
5 | 5 |
6 from telemetry import test as test_module | 6 from telemetry import test as test_module |
| 7 from telemetry.core import exceptions |
7 from telemetry.core import util | 8 from telemetry.core import util |
8 from telemetry.page import page_set | 9 from telemetry.page import page_set |
9 from telemetry.page import page_test | 10 from telemetry.page import page_test |
10 | 11 |
11 data_path = os.path.join( | 12 data_path = os.path.join( |
12 util.GetChromiumSrcDir(), 'content', 'test', 'data', 'gpu') | 13 util.GetChromiumSrcDir(), 'content', 'test', 'data', 'gpu') |
13 | 14 |
14 wait_timeout = 20 # seconds | 15 wait_timeout = 20 # seconds |
15 | 16 |
16 harness_script = r""" | 17 harness_script = r""" |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 'navigate_steps': [ | 131 'navigate_steps': [ |
131 { 'action': 'navigate' }, | 132 { 'action': 'navigate' }, |
132 { 'action': 'wait', | 133 { 'action': 'wait', |
133 'javascript': 'window.domAutomationController._finished' } | 134 'javascript': 'window.domAutomationController._finished' } |
134 ], | 135 ], |
135 'kill_gpu_process': False | 136 'kill_gpu_process': False |
136 }, | 137 }, |
137 ] | 138 ] |
138 } | 139 } |
139 return page_set.PageSet.FromDict(page_set_dict, data_path) | 140 return page_set.PageSet.FromDict(page_set_dict, data_path) |
OLD | NEW |