| 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 import platform |
| 5 | 6 |
| 6 from gpu_tests.gpu_test_expectations import GpuTestExpectations | 7 from gpu_tests.gpu_test_expectations import GpuTestExpectations |
| 7 | 8 |
| 8 # See the GpuTestExpectations class for documentation. | 9 # See the GpuTestExpectations class for documentation. |
| 9 | 10 |
| 10 class WebGLConformanceExpectations(GpuTestExpectations): | 11 class WebGLConformanceExpectations(GpuTestExpectations): |
| 11 def __init__(self, conformance_path): | 12 def __init__(self, conformance_path): |
| 12 self.conformance_path = conformance_path | 13 self.conformance_path = conformance_path |
| 13 super(WebGLConformanceExpectations, self).__init__() | 14 super(WebGLConformanceExpectations, self).__init__() |
| 14 | 15 |
| 15 def Fail(self, pattern, condition=None, bug=None): | 16 def Fail(self, pattern, condition=None, bug=None): |
| 16 self.CheckPatternIsValid(pattern) | 17 self.CheckPatternIsValid(pattern) |
| 17 GpuTestExpectations.Fail(self, pattern, condition, bug) | 18 GpuTestExpectations.Fail(self, pattern, condition, bug) |
| 18 | 19 |
| 19 def Skip(self, pattern, condition=None, bug=None): | 20 def Skip(self, pattern, condition=None, bug=None): |
| 20 self.CheckPatternIsValid(pattern) | 21 self.CheckPatternIsValid(pattern) |
| 21 GpuTestExpectations.Skip(self, pattern, condition, bug) | 22 GpuTestExpectations.Skip(self, pattern, condition, bug) |
| 22 | 23 |
| 23 def CheckPatternIsValid(self, pattern): | 24 def CheckPatternIsValid(self, pattern): |
| 24 # Look for basic wildcards. | 25 # Look for basic wildcards. |
| 25 if not '*' in pattern: | 26 if not '*' in pattern: |
| 26 full_path = os.path.normpath(os.path.join(self.conformance_path, pattern)) | 27 full_path = os.path.normpath(os.path.join(self.conformance_path, pattern)) |
| 27 if not os.path.exists(full_path): | 28 if not os.path.exists(full_path): |
| 28 raise Exception('The WebGL conformance test path specified in' + | 29 err_msg = ('The WebGL conformance test path specified in ' + |
| 29 'expectation does not exist: ' + full_path) | 30 'expectation does not exist: ' + full_path) |
| 31 # Seeing problems on some Windows bots where the full path doesn't |
| 32 # seem to exist if it's over 255 characters. http://crbug.com/599333 |
| 33 if platform.system().startswith('Windows') and len(full_path) > 255: |
| 34 print err_msg |
| 35 else: |
| 36 raise Exception(err_msg) |
| 30 | 37 |
| 31 def SetExpectations(self): | 38 def SetExpectations(self): |
| 32 # Fails on all platforms | 39 # Fails on all platforms |
| 33 self.Fail('deqp/data/gles2/shaders/functions.html', | 40 self.Fail('deqp/data/gles2/shaders/functions.html', |
| 34 bug=478572) | 41 bug=478572) |
| 35 self.Fail('deqp/data/gles2/shaders/scoping.html', | 42 self.Fail('deqp/data/gles2/shaders/scoping.html', |
| 36 bug=478572) | 43 bug=478572) |
| 37 self.Fail('conformance/extensions/ext-sRGB.html', | 44 self.Fail('conformance/extensions/ext-sRGB.html', |
| 38 bug=540900) | 45 bug=540900) |
| 39 | 46 |
| (...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 423 self.Fail('conformance/textures/misc/texture-npot.html', | 430 self.Fail('conformance/textures/misc/texture-npot.html', |
| 424 ['chromeos', ('intel', 0xa011)], bug=375554) | 431 ['chromeos', ('intel', 0xa011)], bug=375554) |
| 425 self.Fail('conformance/textures/misc/texture-npot-video.html', | 432 self.Fail('conformance/textures/misc/texture-npot-video.html', |
| 426 ['chromeos', ('intel', 0xa011)], bug=375554) | 433 ['chromeos', ('intel', 0xa011)], bug=375554) |
| 427 self.Fail('conformance/textures/misc/texture-size.html', | 434 self.Fail('conformance/textures/misc/texture-size.html', |
| 428 ['chromeos', ('intel', 0xa011)], bug=375554) | 435 ['chromeos', ('intel', 0xa011)], bug=375554) |
| 429 self.Fail('conformance/uniforms/gl-uniform-arrays.html', | 436 self.Fail('conformance/uniforms/gl-uniform-arrays.html', |
| 430 ['chromeos', ('intel', 0xa011)], bug=375554) | 437 ['chromeos', ('intel', 0xa011)], bug=375554) |
| 431 self.Skip('conformance/uniforms/uniform-default-values.html', | 438 self.Skip('conformance/uniforms/uniform-default-values.html', |
| 432 ['chromeos', ('intel', 0xa011)], bug=375554) | 439 ['chromeos', ('intel', 0xa011)], bug=375554) |
| OLD | NEW |