| 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 cloud_storage_test_base | 5 import cloud_storage_test_base |
| 6 import optparse | 6 import optparse |
| 7 import page_sets | 7 import page_sets |
| 8 | 8 |
| 9 | 9 |
| 10 test_harness_script = r""" | 10 test_harness_script = r""" |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 self._ValidateScreenshotSamples( | 58 self._ValidateScreenshotSamples( |
| 59 page.display_name, | 59 page.display_name, |
| 60 screenshot, | 60 screenshot, |
| 61 page.expectations, | 61 page.expectations, |
| 62 device_pixel_ratio) | 62 device_pixel_ratio) |
| 63 | 63 |
| 64 | 64 |
| 65 class GpuRasterization(cloud_storage_test_base.TestBase): | 65 class GpuRasterization(cloud_storage_test_base.TestBase): |
| 66 """Tests that GPU rasterization produces valid content""" | 66 """Tests that GPU rasterization produces valid content""" |
| 67 test = _GpuRasterizationValidator | 67 test = _GpuRasterizationValidator |
| 68 page_set = page_sets.GpuRasterizationTestsPageSet | |
| 69 | 68 |
| 70 def CreatePageSet(self, options): | 69 def CreatePageSet(self, options): |
| 71 page_set = super(GpuRasterization, self).CreatePageSet(options) | 70 page_set = page_sets.GpuRasterizationTestsPageSet() |
| 72 for page in page_set.pages: | 71 for page in page_set.pages: |
| 73 page.script_to_evaluate_on_commit = test_harness_script | 72 page.script_to_evaluate_on_commit = test_harness_script |
| 74 return page_set | 73 return page_set |
| OLD | NEW |