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
3 # found in the LICENSE file.
5 from telemetry.page import test_expectations
7 # Valid expectation conditions are:
10 # win, xp, vista, win7, mac, leopard, snowleopard, lion, mountainlion,
11 # linux, chromeos, android
14 # amd, arm, broadcom, hisilicon, intel, imagination, nvidia, qualcomm,
17 # Specific GPUs can be listed as a tuple with vendor name and device ID.
18 # Examples: ('nvidia', 0x1234), ('arm', 'Mali-T604')
19 # Device IDs must be paired with a GPU vendor.
21 class WebGLConformanceExpectations(test_expectations.TestExpectations):
22 def SetExpectations(self):
24 # self.Fail('gl-enable-vertex-attrib.html',
25 # ['mac', 'amd', ('nvidia', 0x1234)], bug=123)
27 # Fails on all platforms
28 self.Fail('conformance/glsl/misc/shaders-with-mis-matching-uniforms.html',
31 # Win7 / Intel failures
32 self.Fail('conformance/rendering/gl-scissor-test.html',
33 ['win7', 'intel'], bug=314997)
34 self.Fail('conformance/context/premultiplyalpha-test.html',
36 self.Fail('conformance/textures/copy-tex-image-and-sub-image-2d.html',
39 # Mac / Intel failures
41 self.Fail('conformance/limits/gl-max-texture-dimensions.html',
42 ['mac', 'intel'], bug=225642)
44 self.Fail('conformance/textures/texture-size.html',
45 ['mac', 'intel'], bug=225642)
47 # Mac / Intel HD 3000 failures
48 self.Skip('conformance/ogles/GL/control_flow/control_flow_009_to_010.html',
49 ['mac', ('intel', 0x116)], bug=322795)
51 self.Fail('conformance/glsl/functions/glsl-function-smoothstep-gentype.html',
52 ['mac', ('intel', 0x116)], bug=225642)
54 # Mac 10.8 / Intel HD 3000 failures
55 self.Fail('conformance/rendering/gl-scissor-test.html',
56 ['mountainlion', ('intel', 0x116)], bug=314997)
57 self.Fail('conformance/ogles/GL/operators/operators_009_to_016.html',
58 ['mountainlion', ('intel', 0x116)], bug=322795)
60 # Mac 10.7 / Intel failures
61 self.Skip('conformance/glsl/functions/glsl-function-asin.html',
63 self.Skip('conformance/glsl/functions/glsl-function-dot.html',
65 self.Skip('conformance/glsl/functions/glsl-function-faceforward.html',
67 self.Skip('conformance/glsl/functions/glsl-function-length.html',
69 self.Skip('conformance/glsl/functions/glsl-function-normalize.html',
71 self.Skip('conformance/glsl/functions/glsl-function-reflect.html',
73 self.Skip('conformance/rendering/line-loop-tri-fan.html',
75 self.Skip('conformance/ogles/GL/control_flow/control_flow_001_to_008.html',
76 ['lion', 'intel'], bug=345575)
77 self.Skip('conformance/ogles/GL/dot/dot_001_to_006.html',
78 ['lion', 'intel'], bug=323736)
79 self.Skip('conformance/ogles/GL/faceforward/faceforward_001_to_006.html',
80 ['lion', 'intel'], bug=323736)
81 self.Skip('conformance/ogles/GL/length/length_001_to_006.html',
82 ['lion', 'intel'], bug=323736)
83 self.Skip('conformance/ogles/GL/normalize/normalize_001_to_006.html',
84 ['lion', 'intel'], bug=323736)
85 self.Skip('conformance/ogles/GL/reflect/reflect_001_to_006.html',
86 ['lion', 'intel'], bug=323736)
87 self.Skip('conformance/ogles/GL/refract/refract_001_to_006.html',
88 ['lion', 'intel'], bug=323736)
89 self.Skip('conformance/ogles/GL/tan/tan_001_to_006.html',
90 ['lion', 'intel'], bug=323736)
93 # The following test is very slow and therefore times out on Android bot.
94 self.Skip('conformance/rendering/multisample-corruption.html',
96 self.Fail('conformance/glsl/misc/empty_main.vert.html',
97 ['android'], bug=315976)
98 self.Fail('conformance/glsl/misc/gl_position_unset.vert.html',
99 ['android'], bug=315976)