| 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 | 4 |
| 5 class PixelTestPage(object): | 5 class PixelTestPage(object): |
| 6 """A wrapper class mimicking the functionality of the PixelTestsStorySet | 6 """A wrapper class mimicking the functionality of the PixelTestsStorySet |
| 7 from the old-style GPU tests. | 7 from the old-style GPU tests. |
| 8 """ | 8 """ |
| 9 def __init__(self, url, name, test_rect, revision, | 9 def __init__(self, url, name, test_rect, revision, |
| 10 expected_colors=None, tolerance=2, browser_args=None): | 10 expected_colors=None, tolerance=2, browser_args=None): |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 def CopyPagesWithNewBrowserArgsAndSuffix(pages, browser_args, suffix): | 39 def CopyPagesWithNewBrowserArgsAndSuffix(pages, browser_args, suffix): |
| 40 return [ | 40 return [ |
| 41 p.CopyWithNewBrowserArgsAndSuffix(browser_args, suffix) for p in pages] | 41 p.CopyWithNewBrowserArgsAndSuffix(browser_args, suffix) for p in pages] |
| 42 | 42 |
| 43 | 43 |
| 44 def CopyPagesWithNewBrowserArgsAndPrefix(pages, browser_args, prefix): | 44 def CopyPagesWithNewBrowserArgsAndPrefix(pages, browser_args, prefix): |
| 45 return [ | 45 return [ |
| 46 p.CopyWithNewBrowserArgsAndPrefix(browser_args, prefix) for p in pages] | 46 p.CopyWithNewBrowserArgsAndPrefix(browser_args, prefix) for p in pages] |
| 47 | 47 |
| 48 | 48 |
| 49 # Pages that should be run both with and without --enable-unsafe-es3-apis. | 49 def DefaultPages(base_name): |
| 50 # TODO(kbr): eliminate the "ES3" versions of these tests once WebGL 2.0 | |
| 51 # is enabled by default. crbug.com/295792 | |
| 52 def ES2AndES3Pages(base_name): | |
| 53 return [ | 50 return [ |
| 54 PixelTestPage( | 51 PixelTestPage( |
| 55 'pixel_canvas2d.html', | 52 'pixel_canvas2d.html', |
| 56 base_name + '_Canvas2DRedBox', | 53 base_name + '_Canvas2DRedBox', |
| 57 test_rect=[0, 0, 300, 300], | 54 test_rect=[0, 0, 300, 300], |
| 58 revision=7), | 55 revision=7), |
| 59 | 56 |
| 60 PixelTestPage( | 57 PixelTestPage( |
| 61 'pixel_css3d.html', | 58 'pixel_css3d.html', |
| 62 base_name + '_CSS3DBlueBox', | 59 base_name + '_CSS3DBlueBox', |
| (...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 302 test_rect=[0, 0, 300, 300], | 299 test_rect=[0, 0, 300, 300], |
| 303 revision=3), | 300 revision=3), |
| 304 PixelTestPage( | 301 PixelTestPage( |
| 305 'filter_effects.html', | 302 'filter_effects.html', |
| 306 base_name + '_CSSFilterEffects_NoOverlays', | 303 base_name + '_CSSFilterEffects_NoOverlays', |
| 307 test_rect=[0, 0, 300, 300], | 304 test_rect=[0, 0, 300, 300], |
| 308 revision=3, | 305 revision=3, |
| 309 tolerance=10, | 306 tolerance=10, |
| 310 browser_args=['--disable-mac-overlays']), | 307 browser_args=['--disable-mac-overlays']), |
| 311 ] | 308 ] |
| OLD | NEW |