| 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 'tolerance': 0, | 62 'tolerance': 0, |
| 63 'location': [140, 120]}, | 63 'location': [140, 120]}, |
| 64 {'comment': 'box-l', | 64 {'comment': 'box-l', |
| 65 'color': [0, 0, 255], | 65 'color': [0, 0, 255], |
| 66 'tolerance': 0, | 66 'tolerance': 0, |
| 67 'location': [70, 120]} | 67 'location': [70, 120]} |
| 68 ] | 68 ] |
| 69 self.test_rect = [0, 0, 250, 250] | 69 self.test_rect = [0, 0, 250, 250] |
| 70 | 70 |
| 71 def RunNavigateSteps(self, action_runner): | 71 def RunNavigateSteps(self, action_runner): |
| 72 action_runner.RunAction(NavigateAction()) | 72 action_runner.NavigateToPage(self) |
| 73 action_runner.RunAction(WaitAction( | 73 action_runner.RunAction(WaitAction( |
| 74 { | 74 { |
| 75 'javascript': 'domAutomationController._finished', | 75 'javascript': 'domAutomationController._finished', |
| 76 'timeout': 30 | 76 'timeout': 30 |
| 77 })) | 77 })) |
| 78 | 78 |
| 79 | 79 |
| 80 class GpuRasterizationTestsPageSet(page_set_module.PageSet): | 80 class GpuRasterizationTestsPageSet(page_set_module.PageSet): |
| 81 | 81 |
| 82 """ Basic test cases for GPU rasterization. """ | 82 """ Basic test cases for GPU rasterization. """ |
| 83 | 83 |
| 84 def __init__(self): | 84 def __init__(self): |
| 85 super(GpuRasterizationTestsPageSet, self).__init__( | 85 super(GpuRasterizationTestsPageSet, self).__init__( |
| 86 user_agent_type='desktop') | 86 user_agent_type='desktop') |
| 87 | 87 |
| 88 self.AddPage(GpuRasterizationTestsPage(self)) | 88 self.AddPage(GpuRasterizationTestsPage(self)) |
| OLD | NEW |