OLD | NEW |
1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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 glob | 4 import glob |
5 import logging | 5 import logging |
6 import os | 6 import os |
7 import re | 7 import re |
8 import sys | 8 import sys |
9 | 9 |
10 from gpu_tests import cloud_storage_integration_test_base | 10 from gpu_tests import cloud_storage_integration_test_base |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 @classmethod | 108 @classmethod |
109 def _CreateExpectations(cls): | 109 def _CreateExpectations(cls): |
110 return pixel_expectations.PixelExpectations() | 110 return pixel_expectations.PixelExpectations() |
111 | 111 |
112 @classmethod | 112 @classmethod |
113 def GenerateGpuTests(cls, options): | 113 def GenerateGpuTests(cls, options): |
114 cls.SetParsedCommandLineOptions(options) | 114 cls.SetParsedCommandLineOptions(options) |
115 name = 'Pixel' | 115 name = 'Pixel' |
116 pages = pixel_test_pages.ES2AndES3Pages(name) | 116 pages = pixel_test_pages.ES2AndES3Pages(name) |
117 pages += pixel_test_pages.ExperimentalCanvasFeaturesPages(name) | 117 pages += pixel_test_pages.ExperimentalCanvasFeaturesPages(name) |
| 118 pages += pixel_test_pages.SoftwareOffscreenCanvas2dPages(name) |
118 if sys.platform.startswith('darwin'): | 119 if sys.platform.startswith('darwin'): |
119 # TOOD(kbr): replace this with CopyPagesWithNewBrowserArgsAndPrefix, | 120 # TOOD(kbr): replace this with CopyPagesWithNewBrowserArgsAndPrefix, |
120 # and removeCopyPagesWithNewBrowserArgsAndSuffix. This renaming | 121 # and removeCopyPagesWithNewBrowserArgsAndSuffix. This renaming |
121 # will cause all of the ES3 tests to be run back-to-back, | 122 # will cause all of the ES3 tests to be run back-to-back, |
122 # reducing the number of browser restarts and speeding up the | 123 # reducing the number of browser restarts and speeding up the |
123 # tests. Note that this will require all the ES3 tests to be | 124 # tests. Note that this will require all the ES3 tests to be |
124 # temporarily marked failing on macOS, and is too big a change | 125 # temporarily marked failing on macOS, and is too big a change |
125 # to do along with the port to the new harness. | 126 # to do along with the port to the new harness. |
126 pages += pixel_test_pages.CopyPagesWithNewBrowserArgsAndSuffix( | 127 pages += pixel_test_pages.CopyPagesWithNewBrowserArgsAndSuffix( |
127 pixel_test_pages.ES2AndES3Pages(name), | 128 pixel_test_pages.ES2AndES3Pages(name), |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 ref_png = None | 230 ref_png = None |
230 | 231 |
231 if ref_png is not None: | 232 if ref_png is not None: |
232 return ref_png | 233 return ref_png |
233 | 234 |
234 print ('Reference image not found. Writing tab contents as reference to: ' + | 235 print ('Reference image not found. Writing tab contents as reference to: ' + |
235 image_path) | 236 image_path) |
236 | 237 |
237 self._WriteImage(image_path, screenshot) | 238 self._WriteImage(image_path, screenshot) |
238 return screenshot | 239 return screenshot |
OLD | NEW |