| 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 # pylint: disable=W0401,W0614 | 4 # pylint: disable=W0401,W0614 |
| 5 from telemetry.page.actions.all_page_actions import * | 5 from telemetry.page.actions.all_page_actions import * |
| 6 from telemetry.page import page as page_module | 6 from telemetry.page import page as page_module |
| 7 from telemetry.page import page_set as page_set_module | 7 from telemetry.page import page_set as page_set_module |
| 8 | 8 |
| 9 | 9 |
| 10 class GpuRasterizationTestsPage(page_module.Page): | 10 class GpuRasterizationTestsPage(page_module.Page): |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 'location': [140, 140]}, | 62 'location': [140, 140]}, |
| 63 {'comment': 'box-l', | 63 {'comment': 'box-l', |
| 64 'color': [0, 0, 255], | 64 'color': [0, 0, 255], |
| 65 'tolerance': 0, | 65 'tolerance': 0, |
| 66 'location': [70, 140]} | 66 'location': [70, 140]} |
| 67 ] | 67 ] |
| 68 self.test_rect = [0, 0, 220, 220] | 68 self.test_rect = [0, 0, 220, 220] |
| 69 | 69 |
| 70 def RunNavigateSteps(self, action_runner): | 70 def RunNavigateSteps(self, action_runner): |
| 71 action_runner.NavigateToPage(self) | 71 action_runner.NavigateToPage(self) |
| 72 action_runner.RunAction(WaitAction( | 72 action_runner.WaitForJavaScriptCondition( |
| 73 { | 73 'domAutomationController._finished', timeout=30) |
| 74 'javascript': 'domAutomationController._finished', | |
| 75 'timeout': 30 | |
| 76 })) | |
| 77 | 74 |
| 78 | 75 |
| 79 class GpuRasterizationTestsPageSet(page_set_module.PageSet): | 76 class GpuRasterizationTestsPageSet(page_set_module.PageSet): |
| 80 | 77 |
| 81 """ Basic test cases for GPU rasterization. """ | 78 """ Basic test cases for GPU rasterization. """ |
| 82 | 79 |
| 83 def __init__(self): | 80 def __init__(self): |
| 84 super(GpuRasterizationTestsPageSet, self).__init__() | 81 super(GpuRasterizationTestsPageSet, self).__init__() |
| 85 | 82 |
| 86 self.AddPage(GpuRasterizationTestsPage(self)) | 83 self.AddPage(GpuRasterizationTestsPage(self)) |
| OLD | NEW |