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 logging | 5 import logging |
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 page_set as page_set_module | 8 from telemetry.page import page_set as page_set_module |
9 | 9 |
10 | 10 |
(...skipping 10 matching lines...) Expand all Loading... |
21 if not browser_info.HasWebGLSupport(): | 21 if not browser_info.HasWebGLSupport(): |
22 logging.warning('Browser does not support webgl, skipping test') | 22 logging.warning('Browser does not support webgl, skipping test') |
23 return False | 23 return False |
24 return True | 24 return True |
25 | 25 |
26 def RunNavigateSteps(self, action_runner): | 26 def RunNavigateSteps(self, action_runner): |
27 action_runner.NavigateToPage(self) | 27 action_runner.NavigateToPage(self) |
28 action_runner.Wait(3) | 28 action_runner.Wait(3) |
29 | 29 |
30 def RunSmoothness(self, action_runner): | 30 def RunSmoothness(self, action_runner): |
31 action_runner.WaitForJavaScriptCondition('window.testDone') | 31 action_runner.WaitForJavaScriptCondition('window.testDone', 120) |
32 | 32 |
33 | 33 |
34 class MapsPageSet(page_set_module.PageSet): | 34 class MapsPageSet(page_set_module.PageSet): |
35 | 35 |
36 """ Google Maps examples """ | 36 """ Google Maps examples """ |
37 | 37 |
38 def __init__(self): | 38 def __init__(self): |
39 super(MapsPageSet, self).__init__( | 39 super(MapsPageSet, self).__init__( |
40 archive_data_file='data/maps.json', | 40 archive_data_file='data/maps.json', |
41 bucket=page_set_module.INTERNAL_BUCKET) | 41 bucket=page_set_module.INTERNAL_BUCKET) |
42 | 42 |
43 self.AddPage(MapsPage(self)) | 43 self.AddPage(MapsPage(self)) |
OLD | NEW |