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 # Windows/Intel failures
28 self
.Fail('conformance/textures/texture-size.html',
29 ['win', 'intel'], bug
=121139)
31 # Windows 7/Intel failures
32 self
.Fail('conformance/context/context-lost-restored.html',
34 self
.Fail('conformance/context/premultiplyalpha-test.html',
36 self
.Fail('conformance/extensions/oes-texture-float-with-image-data.html',
38 self
.Fail('conformance/extensions/oes-texture-float.html',
40 self
.Fail('conformance/limits/gl-min-attribs.html',
42 self
.Fail('conformance/limits/gl-max-texture-dimensions.html',
44 self
.Fail('conformance/limits/gl-min-textures.html',
46 self
.Fail('conformance/limits/gl-min-uniforms.html',
48 self
.Fail('conformance/rendering/gl-clear.html',
50 self
.Fail('conformance/textures/copy-tex-image-and-sub-image-2d.html',
52 self
.Fail('conformance/textures/gl-teximage.html',
54 self
.Fail('conformance/textures/tex-image-and-sub-image-2d-with-array-buffer-view.html',
56 self
.Fail('conformance/textures/tex-image-and-sub-image-2d-with-image-data.html',
58 self
.Fail('conformance/textures/tex-image-and-sub-image-2d-with-image-data-rgb565.html',
60 self
.Fail('conformance/textures/tex-image-and-sub-image-2d-with-image-data-rgba4444.html',
62 self
.Fail('conformance/textures/tex-image-and-sub-image-2d-with-image-data-rgba5551.html',
64 self
.Fail('conformance/textures/tex-image-with-format-and-type.html',
66 self
.Fail('conformance/textures/tex-sub-image-2d.html',
68 self
.Fail('conformance/textures/texparameter-test.html',
70 self
.Fail('conformance/textures/texture-active-bind-2.html',
72 self
.Fail('conformance/textures/texture-active-bind.html',
74 self
.Fail('conformance/textures/texture-complete.html',
76 self
.Fail('conformance/textures/texture-formats-test.html',
78 self
.Fail('conformance/textures/texture-mips.html',
80 self
.Fail('conformance/textures/texture-npot.html',
82 self
.Fail('conformance/textures/texture-size-cube-maps.html',
86 # The following two tests hang the WindowServer.
87 self
.Skip('conformance/canvas/drawingbuffer-static-canvas-test.html',
88 ['mac', 'intel'], bug
=303915)
89 self
.Skip('conformance/canvas/drawingbuffer-test.html',
90 ['mac', 'intel'], bug
=303915)
91 # The following three tests only fail.
94 'conformance/glsl/functions/glsl-function-smoothstep-gentype.html',
95 ['mac', 'intel'], bug
=225642)
97 self
.Fail('conformance/limits/gl-max-texture-dimensions.html',
98 ['mac', 'intel'], bug
=225642)
100 self
.Fail('conformance/textures/texture-size.html',
101 ['mac', 'intel'], bug
=225642)
103 # Mac/Intel failures on 10.7
104 self
.Skip('conformance/glsl/functions/glsl-function-asin.html',
106 self
.Skip('conformance/glsl/functions/glsl-function-dot.html',
108 self
.Skip('conformance/glsl/functions/glsl-function-faceforward.html',
110 self
.Skip('conformance/glsl/functions/glsl-function-length.html',
112 self
.Skip('conformance/glsl/functions/glsl-function-normalize.html',
114 self
.Skip('conformance/glsl/functions/glsl-function-reflect.html',
117 'conformance/glsl/functions/glsl-function-smoothstep-gentype.html',
119 self
.Skip('conformance/limits/gl-max-texture-dimensions.html',
121 self
.Skip('conformance/rendering/line-loop-tri-fan.html',
125 self
.Skip('conformance/extensions/oes-texture-float-with-image-data.html',
126 ['mac', 'amd'], bug
=308328)
127 self
.Skip('conformance/rendering/gl-clear.html',
128 ['mac', 'amd'], bug
=308328)
129 self
.Skip('conformance/textures/tex-image-and-sub-image-2d-with-array-buffer-view.html',
130 ['mac', 'amd'], bug
=308328)
131 self
.Skip('conformance/textures/tex-image-and-sub-image-2d-with-image-data.html',
132 ['mac', 'amd'], bug
=308328)
133 self
.Skip('conformance/textures/tex-image-and-sub-image-2d-with-image-data-rgb565.html',
134 ['mac', 'amd'], bug
=308328)
135 self
.Skip('conformance/textures/tex-image-and-sub-image-2d-with-image-data-rgba4444.html',
136 ['mac', 'amd'], bug
=308328)
137 self
.Skip('conformance/textures/tex-image-and-sub-image-2d-with-image-data-rgba5551.html',
138 ['mac', 'amd'], bug
=308328)
141 self
.Fail('conformance/textures/texture-npot-video.html',
142 ['android'], bug
=306485)