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',
30 self
.Fail('conformance/glsl/misc/boolean_precision.html',
32 self
.Fail('conformance/glsl/misc/shader-struct-scope.html',
36 self
.Fail('conformance/extensions/webgl-draw-buffers.html',
39 # Win7 / Intel failures
40 self
.Fail('conformance/rendering/gl-scissor-test.html',
41 ['win7', 'intel'], bug
=314997)
42 self
.Fail('conformance/context/premultiplyalpha-test.html',
44 self
.Fail('conformance/textures/copy-tex-image-and-sub-image-2d.html',
46 self
.Fail('conformance/rendering/gl-viewport-test.html',
47 ['win7', 'intel'], bug
=372511)
49 # Mac / Intel failures
51 self
.Fail('conformance/limits/gl-max-texture-dimensions.html',
52 ['mac', 'intel'], bug
=225642)
54 self
.Fail('conformance/textures/texture-size.html',
55 ['mac', 'intel'], bug
=225642)
57 # Mac / Intel HD 3000 failures
58 self
.Skip('conformance/ogles/GL/control_flow/control_flow_009_to_010.html',
59 ['mac', ('intel', 0x116)], bug
=322795)
61 self
.Fail('conformance/glsl/functions/glsl-function-smoothstep-gentype.html',
62 ['mac', ('intel', 0x116)], bug
=225642)
63 self
.Fail('conformance/extensions/webgl-draw-buffers.html',
64 ['mac', ('intel', 0x116)], bug
=369349)
66 # Mac 10.8 / Intel HD 3000 failures
67 self
.Fail('conformance/rendering/gl-scissor-test.html',
68 ['mountainlion', ('intel', 0x116)], bug
=314997)
69 self
.Fail('conformance/ogles/GL/operators/operators_009_to_016.html',
70 ['mountainlion', ('intel', 0x116)], bug
=322795)
74 'conformance/glsl/bugs/array-of-struct-with-int-first-position.html',
75 ['mac', ('nvidia', 0xfd5), ('nvidia', 0xfe9)], bug
=368912)
77 # Mac 10.8 / ATI failures
79 'conformance/rendering/point-with-gl-pointcoord-in-fragment-shader.html',
80 ['mountainlion', 'amd'])
82 # Mac 10.7 / Intel failures
83 self
.Skip('conformance/glsl/functions/glsl-function-asin.html',
85 self
.Skip('conformance/glsl/functions/glsl-function-dot.html',
87 self
.Skip('conformance/glsl/functions/glsl-function-faceforward.html',
89 self
.Skip('conformance/glsl/functions/glsl-function-length.html',
91 self
.Skip('conformance/glsl/functions/glsl-function-normalize.html',
93 self
.Skip('conformance/glsl/functions/glsl-function-reflect.html',
95 self
.Skip('conformance/rendering/line-loop-tri-fan.html',
97 self
.Skip('conformance/ogles/GL/control_flow/control_flow_001_to_008.html',
98 ['lion', 'intel'], bug
=345575)
99 self
.Skip('conformance/ogles/GL/dot/dot_001_to_006.html',
100 ['lion', 'intel'], bug
=323736)
101 self
.Skip('conformance/ogles/GL/faceforward/faceforward_001_to_006.html',
102 ['lion', 'intel'], bug
=323736)
103 self
.Skip('conformance/ogles/GL/length/length_001_to_006.html',
104 ['lion', 'intel'], bug
=323736)
105 self
.Skip('conformance/ogles/GL/normalize/normalize_001_to_006.html',
106 ['lion', 'intel'], bug
=323736)
107 self
.Skip('conformance/ogles/GL/reflect/reflect_001_to_006.html',
108 ['lion', 'intel'], bug
=323736)
109 self
.Skip('conformance/ogles/GL/refract/refract_001_to_006.html',
110 ['lion', 'intel'], bug
=323736)
111 self
.Skip('conformance/ogles/GL/tan/tan_001_to_006.html',
112 ['lion', 'intel'], bug
=323736)
115 # The following test is very slow and therefore times out on Android bot.
116 self
.Skip('conformance/rendering/multisample-corruption.html',
118 # The following test times out on Android bot.
119 self
.Fail('conformance/uniforms/gl-uniform-arrays.html',
120 ['android'], bug
=369300)
121 self
.Fail('conformance/glsl/misc/empty_main.vert.html',
122 ['android'], bug
=315976)
123 self
.Fail('conformance/glsl/misc/gl_position_unset.vert.html',
124 ['android'], bug
=315976)
125 # The following tests are disabled due to security issues.
126 self
.Fail('conformance/textures/tex-image-and-sub-image-2d-with-video.html',
127 ['android'], bug
=334204)
128 self
.Fail('conformance/textures/tex-image-and-sub-image-2d-with-video-rgb565.html',
129 ['android'], bug
=334204)
130 self
.Fail('conformance/textures/tex-image-and-sub-image-2d-with-video-rgba4444.html',
131 ['android'], bug
=334204)
132 self
.Fail('conformance/textures/tex-image-and-sub-image-2d-with-video-rgba5551.html',
133 ['android'], bug
=334204)
134 self
.Fail('conformance/textures/texture-npot-video.html',
135 ['android'], bug
=334204)