| OLD | NEW |
| 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 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 os | 4 import os |
| 5 | 5 |
| 6 from gpu_tests.gpu_test_expectations import GpuTestExpectations | 6 from gpu_tests.gpu_test_expectations import GpuTestExpectations |
| 7 | 7 |
| 8 # See the GpuTestExpectations class for documentation. | 8 # See the GpuTestExpectations class for documentation. |
| 9 | 9 |
| 10 class WebGLConformanceExpectations(GpuTestExpectations): | 10 class WebGLConformanceExpectations(GpuTestExpectations): |
| 11 def __init__(self, conformance_path): | 11 def __init__(self, conformance_path): |
| 12 self.conformance_path = conformance_path | 12 self.conformance_path = conformance_path |
| 13 super(WebGLConformanceExpectations, self).__init__() | 13 super(WebGLConformanceExpectations, self).__init__() |
| 14 | 14 |
| 15 def Fail(self, pattern, condition=None, bug=None): | 15 def Fail(self, pattern, condition=None, bug=None): |
| 16 self.CheckPatternIsValid(pattern) | 16 self.CheckPatternIsValid(pattern) |
| 17 GpuTestExpectations.Fail(self, pattern, condition, bug) | 17 GpuTestExpectations.Fail(self, pattern, condition, bug) |
| 18 | 18 |
| 19 def Flaky(self, pattern, condition=None, bug=None, max_num_retries=2): |
| 20 self.CheckPatternIsValid(pattern) |
| 21 GpuTestExpectations.Flaky(self, pattern, condition, bug=bug, |
| 22 max_num_retries=max_num_retries) |
| 23 |
| 19 def Skip(self, pattern, condition=None, bug=None): | 24 def Skip(self, pattern, condition=None, bug=None): |
| 20 self.CheckPatternIsValid(pattern) | 25 self.CheckPatternIsValid(pattern) |
| 21 GpuTestExpectations.Skip(self, pattern, condition, bug) | 26 GpuTestExpectations.Skip(self, pattern, condition, bug) |
| 22 | 27 |
| 23 def CheckPatternIsValid(self, pattern): | 28 def CheckPatternIsValid(self, pattern): |
| 24 # Look for basic wildcards. | 29 # Look for basic wildcards. |
| 25 if not '*' in pattern and not 'WebglExtension.' in pattern: | 30 if not '*' in pattern and not 'WebglExtension.' in pattern: |
| 26 full_path = os.path.normpath(os.path.join(self.conformance_path, pattern)) | 31 full_path = os.path.normpath(os.path.join(self.conformance_path, pattern)) |
| 27 if not os.path.exists(full_path): | 32 if not os.path.exists(full_path): |
| 28 raise Exception('The WebGL conformance test path specified in ' + | 33 raise Exception('The WebGL conformance test path specified in ' + |
| (...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 525 self.Fail('conformance/textures/misc/texture-npot.html', | 530 self.Fail('conformance/textures/misc/texture-npot.html', |
| 526 ['chromeos', ('intel', 0xa011)], bug=375554) | 531 ['chromeos', ('intel', 0xa011)], bug=375554) |
| 527 self.Fail('conformance/textures/misc/texture-npot-video.html', | 532 self.Fail('conformance/textures/misc/texture-npot-video.html', |
| 528 ['chromeos', ('intel', 0xa011)], bug=375554) | 533 ['chromeos', ('intel', 0xa011)], bug=375554) |
| 529 self.Fail('conformance/textures/misc/texture-size.html', | 534 self.Fail('conformance/textures/misc/texture-size.html', |
| 530 ['chromeos', ('intel', 0xa011)], bug=375554) | 535 ['chromeos', ('intel', 0xa011)], bug=375554) |
| 531 self.Fail('conformance/uniforms/gl-uniform-arrays.html', | 536 self.Fail('conformance/uniforms/gl-uniform-arrays.html', |
| 532 ['chromeos', ('intel', 0xa011)], bug=375554) | 537 ['chromeos', ('intel', 0xa011)], bug=375554) |
| 533 self.Skip('conformance/uniforms/uniform-default-values.html', | 538 self.Skip('conformance/uniforms/uniform-default-values.html', |
| 534 ['chromeos', ('intel', 0xa011)], bug=375554) | 539 ['chromeos', ('intel', 0xa011)], bug=375554) |
| OLD | NEW |