Skip to content
Permalink
Browse files

Add configuration for webgl2 tests and update test expectations

  • Loading branch information
MortimerGoro committed Nov 2, 2017
1 parent c0a6f81 commit ec1f61d9cc6328f1a7036a20d9e2dbd6cbd9bf42
Showing with 2,719 additions and 2 deletions.
  1. +2 −1 components/script/dom/webgl2renderingcontext.rs
  2. +1 −1 resources/prefs.json
  3. +1 −0 tests/wpt/mozilla/meta/webgl/conformance-2.0.0/conformance/__dir__.ini
  4. +2 −0 tests/wpt/mozilla/meta/webgl/conformance-2.0.0/conformance2/__dir__.ini
  5. +7 −0 .../wpt/mozilla/meta/webgl/conformance-2.0.0/conformance2/attribs/gl-vertex-attrib-i-render.html.ini
  6. +41 −0 tests/wpt/mozilla/meta/webgl/conformance-2.0.0/conformance2/attribs/gl-vertex-attrib.html.ini
  7. +5 −0 ...ozilla/meta/webgl/conformance-2.0.0/conformance2/attribs/gl-vertexattribipointer-offsets.html.ini
  8. +5 −0 tests/wpt/mozilla/meta/webgl/conformance-2.0.0/conformance2/attribs/gl-vertexattribipointer.html.ini
  9. +5 −0 .../mozilla/meta/webgl/conformance-2.0.0/conformance2/buffers/bound-buffer-size-change-test.html.ini
  10. +5 −0 tests/wpt/mozilla/meta/webgl/conformance-2.0.0/conformance2/buffers/buffer-copying-contents.html.ini
  11. +5 −0 ...pt/mozilla/meta/webgl/conformance-2.0.0/conformance2/buffers/buffer-copying-restrictions.html.ini
  12. +14 −0 .../webgl/conformance-2.0.0/conformance2/buffers/buffer-data-and-buffer-sub-data-sub-source.html.ini
  13. +5 −0 tests/wpt/mozilla/meta/webgl/conformance-2.0.0/conformance2/buffers/buffer-overflow-test.html.ini
  14. +5 −0 ...s/wpt/mozilla/meta/webgl/conformance-2.0.0/conformance2/buffers/buffer-type-restrictions.html.ini
  15. +38 −0 tests/wpt/mozilla/meta/webgl/conformance-2.0.0/conformance2/buffers/get-buffer-sub-data.html.ini
  16. +4 −0 ...s/wpt/mozilla/meta/webgl/conformance-2.0.0/conformance2/buffers/one-large-uniform-buffer.html.ini
  17. +32 −0 tests/wpt/mozilla/meta/webgl/conformance-2.0.0/conformance2/buffers/uniform-buffers.html.ini
  18. +283 −0 tests/wpt/mozilla/meta/webgl/conformance-2.0.0/conformance2/context/methods-2.html.ini
  19. +49 −0 .../wpt/mozilla/meta/webgl/conformance-2.0.0/conformance2/extensions/ext-color-buffer-float.html.ini
  20. +5 −0 ...illa/meta/webgl/conformance-2.0.0/conformance2/extensions/promoted-extensions-in-shaders.html.ini
  21. +4 −0 tests/wpt/mozilla/meta/webgl/conformance-2.0.0/conformance2/extensions/promoted-extensions.html.ini
  22. +13 −0 tests/wpt/mozilla/meta/webgl/conformance-2.0.0/conformance2/glsl3/array-as-return-value.html.ini
  23. +7 −0 tests/wpt/mozilla/meta/webgl/conformance-2.0.0/conformance2/glsl3/array-assign-constructor.html.ini
  24. +7 −0 tests/wpt/mozilla/meta/webgl/conformance-2.0.0/conformance2/glsl3/array-assign.html.ini
  25. +10 −0 tests/wpt/mozilla/meta/webgl/conformance-2.0.0/conformance2/glsl3/array-complex-indexing.html.ini
  26. +11 −0 tests/wpt/mozilla/meta/webgl/conformance-2.0.0/conformance2/glsl3/array-element-increment.html.ini
  27. +7 −0 tests/wpt/mozilla/meta/webgl/conformance-2.0.0/conformance2/glsl3/array-equality.html.ini
  28. +7 −0 .../wpt/mozilla/meta/webgl/conformance-2.0.0/conformance2/glsl3/array-in-complex-expression.html.ini
  29. +10 −0 ...pt/mozilla/meta/webgl/conformance-2.0.0/conformance2/glsl3/attrib-location-length-limits.html.ini
  30. +34 −0 ...ozilla/meta/webgl/conformance-2.0.0/conformance2/glsl3/bool-type-cast-bug-uint-ivec-uvec.html.ini
  31. +433 −0 ...lla/meta/webgl/conformance-2.0.0/conformance2/glsl3/compound-assignment-type-combination.html.ini
  32. +10 −0 tests/wpt/mozilla/meta/webgl/conformance-2.0.0/conformance2/glsl3/const-array-init.html.ini
  33. +4 −0 ...s/wpt/mozilla/meta/webgl/conformance-2.0.0/conformance2/glsl3/no-attribute-vertex-shader.html.ini
  34. +7 −0 tests/wpt/mozilla/meta/webgl/conformance-2.0.0/conformance2/glsl3/shader-linking.html.ini
  35. +7 −0 ...ozilla/meta/webgl/conformance-2.0.0/conformance2/glsl3/shader-with-1024-character-define.html.ini
  36. +16 −0 ...ta/webgl/conformance-2.0.0/conformance2/glsl3/shader-with-1024-character-identifier.frag.html.ini
  37. +7 −0 ...a/meta/webgl/conformance-2.0.0/conformance2/glsl3/shader-with-mis-matching-uniform-block.html.ini
  38. +7 −0 .../wpt/mozilla/meta/webgl/conformance-2.0.0/conformance2/glsl3/texture-offset-out-of-range.html.ini
  39. +22 −0 ...eta/webgl/conformance-2.0.0/conformance2/glsl3/texture-offset-uniform-texture-coordinate.html.ini
  40. +53 −0 tests/wpt/mozilla/meta/webgl/conformance-2.0.0/conformance2/glsl3/tricky-loop-conditions.html.ini
  41. +5 −0 ...lla/meta/webgl/conformance-2.0.0/conformance2/glsl3/unary-minus-operator-in-dynamic-loop.html.ini
  42. +7 −0 ...s/wpt/mozilla/meta/webgl/conformance-2.0.0/conformance2/glsl3/uniform-block-layout-match.html.ini
  43. +7 −0 ...t/mozilla/meta/webgl/conformance-2.0.0/conformance2/glsl3/uniform-location-length-limits.html.ini
  44. +10 −0 tests/wpt/mozilla/meta/webgl/conformance-2.0.0/conformance2/glsl3/valid-invariant.html.ini
  45. +5 −0 ...la/meta/webgl/conformance-2.0.0/conformance2/glsl3/vector-dynamic-indexing-nv-driver-bug.html.ini
  46. +5 −0 tests/wpt/mozilla/meta/webgl/conformance-2.0.0/conformance2/glsl3/vector-dynamic-indexing.html.ini
  47. +5 −0 tests/wpt/mozilla/meta/webgl/conformance-2.0.0/conformance2/misc/expando-loss-2.html.ini
  48. +13 −0 ...la/meta/webgl/conformance-2.0.0/conformance2/misc/getextension-while-pbo-bound-stability.html.ini
  49. +13 −0 tests/wpt/mozilla/meta/webgl/conformance-2.0.0/conformance2/misc/instanceof-test.html.ini
  50. +53 −0 ...s/wpt/mozilla/meta/webgl/conformance-2.0.0/conformance2/misc/object-deletion-behaviour-2.html.ini
  51. +5 −0 tests/wpt/mozilla/meta/webgl/conformance-2.0.0/conformance2/misc/uninitialized-test-2.html.ini
  52. +11 −0 tests/wpt/mozilla/meta/webgl/conformance-2.0.0/conformance2/misc/views-with-offsets.html.ini
  53. +4 −0 ...wpt/mozilla/meta/webgl/conformance-2.0.0/conformance2/programs/gl-get-frag-data-location.html.ini
  54. +5 −0 tests/wpt/mozilla/meta/webgl/conformance-2.0.0/conformance2/query/occlusion-query.html.ini
  55. +5 −0 tests/wpt/mozilla/meta/webgl/conformance-2.0.0/conformance2/query/query.html.ini
  56. +2 −0 .../wpt/mozilla/meta/webgl/conformance-2.0.0/conformance2/reading/read-pixels-from-fbo-test.html.ini
  57. +2 −0 ...lla/meta/webgl/conformance-2.0.0/conformance2/reading/read-pixels-from-rgb8-into-pbo-bug.html.ini
  58. +8 −0 ...lla/meta/webgl/conformance-2.0.0/conformance2/reading/read-pixels-into-pixel-pack-buffer.html.ini
  59. +695 −0 ...pt/mozilla/meta/webgl/conformance-2.0.0/conformance2/reading/read-pixels-pack-parameters.html.ini
  60. +2 −0 ...la/meta/webgl/conformance-2.0.0/conformance2/renderbuffers/framebuffer-object-attachment.html.ini
  61. +5 −0 tests/wpt/mozilla/meta/webgl/conformance-2.0.0/conformance2/renderbuffers/framebuffer-test.html.ini
  62. +5 −0 ...ozilla/meta/webgl/conformance-2.0.0/conformance2/renderbuffers/framebuffer-texture-layer.html.ini
  63. +5 −0 ...t/mozilla/meta/webgl/conformance-2.0.0/conformance2/renderbuffers/invalidate-framebuffer.html.ini
  64. +5 −0 ...a/webgl/conformance-2.0.0/conformance2/renderbuffers/multisample-with-full-sample-counts.html.ini
  65. +2 −0 ...gl/conformance-2.0.0/conformance2/renderbuffers/multisampled-renderbuffer-initialization.html.ini
  66. +8 −0 tests/wpt/mozilla/meta/webgl/conformance-2.0.0/conformance2/renderbuffers/readbuffer.html.ini
  67. +7 −0 tests/wpt/mozilla/meta/webgl/conformance-2.0.0/conformance2/rendering/attrib-type-match.html.ini
  68. +25 −0 ...a/meta/webgl/conformance-2.0.0/conformance2/rendering/blitframebuffer-filter-outofbounds.html.ini
  69. +5 −0 .../mozilla/meta/webgl/conformance-2.0.0/conformance2/rendering/blitframebuffer-filter-srgb.html.ini
  70. +5 −0 ...a/webgl/conformance-2.0.0/conformance2/rendering/blitframebuffer-multisampled-readbuffer.html.ini
  71. +13 −0 ...a/meta/webgl/conformance-2.0.0/conformance2/rendering/blitframebuffer-outside-readbuffer.html.ini
  72. +25 −0 ...illa/meta/webgl/conformance-2.0.0/conformance2/rendering/blitframebuffer-scissor-enabled.html.ini
  73. +4 −0 ...ozilla/meta/webgl/conformance-2.0.0/conformance2/rendering/blitframebuffer-size-overflow.html.ini
  74. +8 −0 ...bgl/conformance-2.0.0/conformance2/rendering/blitframebuffer-srgb-and-linear-drawbuffers.html.ini
  75. +5 −0 ...mozilla/meta/webgl/conformance-2.0.0/conformance2/rendering/blitframebuffer-stencil-only.html.ini
  76. +8 −0 tests/wpt/mozilla/meta/webgl/conformance-2.0.0/conformance2/rendering/blitframebuffer-test.html.ini
  77. +11 −0 ...zilla/meta/webgl/conformance-2.0.0/conformance2/rendering/canvas-resizing-with-pbo-bound.html.ini
  78. +5 −0 ...mozilla/meta/webgl/conformance-2.0.0/conformance2/rendering/clear-func-buffer-type-match.html.ini
  79. +2 −0 .../wpt/mozilla/meta/webgl/conformance-2.0.0/conformance2/rendering/clear-srgb-color-buffer.html.ini
  80. +5 −0 tests/wpt/mozilla/meta/webgl/conformance-2.0.0/conformance2/rendering/clipping-wide-points.html.ini
  81. +7 −0 tests/wpt/mozilla/meta/webgl/conformance-2.0.0/conformance2/rendering/draw-buffers.html.ini
  82. +133 −0 tests/wpt/mozilla/meta/webgl/conformance-2.0.0/conformance2/rendering/element-index-uint.html.ini
  83. +5 −0 .../meta/webgl/conformance-2.0.0/conformance2/rendering/framebuffer-completeness-unaffected.html.ini
  84. +11 −0 .../wpt/mozilla/meta/webgl/conformance-2.0.0/conformance2/rendering/framebuffer-unsupported.html.ini
  85. +5 −0 .../webgl/conformance-2.0.0/conformance2/rendering/fs-color-type-mismatch-color-buffer-type.html.ini
  86. +53 −0 tests/wpt/mozilla/meta/webgl/conformance-2.0.0/conformance2/rendering/instanced-arrays.html.ini
  87. +5 −0 .../wpt/mozilla/meta/webgl/conformance-2.0.0/conformance2/rendering/instanced-rendering-bug.html.ini
  88. +5 −0 ...webgl/conformance-2.0.0/conformance2/rendering/out-of-bounds-index-buffers-after-copying.html.ini
  89. +8 −0 ...lla/meta/webgl/conformance-2.0.0/conformance2/rendering/rendering-sampling-feedback-loop.html.ini
  90. +7 −0 ...pt/mozilla/meta/webgl/conformance-2.0.0/conformance2/rendering/uniform-block-buffer-size.html.ini
  91. +5 −0 tests/wpt/mozilla/meta/webgl/conformance-2.0.0/conformance2/samplers/sampler-drawing-test.html.ini
  92. +8 −0 tests/wpt/mozilla/meta/webgl/conformance-2.0.0/conformance2/samplers/samplers.html.ini
  93. +5 −0 tests/wpt/mozilla/meta/webgl/conformance-2.0.0/conformance2/state/gl-enum-tests.html.ini
  94. +205 −0 tests/wpt/mozilla/meta/webgl/conformance-2.0.0/conformance2/state/gl-get-calls.html.ini
  95. +7 −0 tests/wpt/mozilla/meta/webgl/conformance-2.0.0/conformance2/state/gl-getstring.html.ini
  96. +2 −0 tests/wpt/mozilla/meta/webgl/conformance-2.0.0/conformance2/state/gl-object-get-calls.html.ini
  97. +8 −0 tests/wpt/mozilla/meta/webgl/conformance-2.0.0/conformance2/sync/sync-webgl-specific.html.ini
  98. +1 −0 tests/wpt/mozilla/meta/webgl/conformance-2.0.0/conformance2/textures/__dir__.ini
  99. +8 −0 .../mozilla/meta/webgl/conformance-2.0.0/conformance2/transform_feedback/transform_feedback.html.ini
  100. +5 −0 ...a/meta/webgl/conformance-2.0.0/conformance2/transform_feedback/two-unreferenced-varyings.html.ini
  101. +7 −0 ...ebgl/conformance-2.0.0/conformance2/transform_feedback/unwritten-output-defaults-to-zero.html.ini
  102. +8 −0 .../wpt/mozilla/meta/webgl/conformance-2.0.0/conformance2/vertex_arrays/vertex-array-object.html.ini
  103. +1 −0 tests/wpt/mozilla/meta/webgl/conformance-2.0.0/deqp/__dir__.ini
@@ -909,6 +909,7 @@ impl WebGL2RenderingContextMethods for WebGL2RenderingContext {
impl LayoutCanvasWebGLRenderingContextHelpers for LayoutDom<WebGL2RenderingContext> {
#[allow(unsafe_code)]
unsafe fn canvas_data_source(&self) -> HTMLCanvasDataSource {
HTMLCanvasDataSource::WebGL((*self.unsafe_get()).base.layout_handle())
let this = &*self.unsafe_get();
HTMLCanvasDataSource::WebGL((*this.base.to_layout().unsafe_get()).layout_handle())
}
}
@@ -16,7 +16,7 @@
"dom.testable_crash.enabled": false,
"dom.testbinding.enabled": false,
"dom.webgl.dom_to_texture.enabled": false,
"dom.webgl2.enabled.enabled": false,
"dom.webgl2.enabled": false,
"dom.webvr.enabled": false,
"dom.webvr.event_polling_interval": 500,
"js.asmjs.enabled": true,
@@ -0,0 +1 @@
disabled: for now
@@ -0,0 +1,2 @@
prefs: ["dom.webgl2.enabled:true"]

@@ -0,0 +1,7 @@
[gl-vertex-attrib-i-render.html]
[WebGL test #0: Unable to fetch WebGL rendering context for Canvas]
expected: FAIL

[WebGL test #1: could not create context]
expected: FAIL

@@ -0,0 +1,41 @@
[gl-vertex-attrib.html]
expected: ERROR
[WebGL test #1: gl.getVertexAttrib(0, gl.CURRENT_VERTEX_ATTRIB) is not an instance of Float32Array]
expected: FAIL

[WebGL test #6: gl.getVertexAttrib(0, gl.CURRENT_VERTEX_ATTRIB) is not an instance of Float32Array]
expected: FAIL

[WebGL test #11: gl.getVertexAttrib(0, gl.CURRENT_VERTEX_ATTRIB) is not an instance of Float32Array]
expected: FAIL

[WebGL test #16: gl.getVertexAttrib(0, gl.CURRENT_VERTEX_ATTRIB) is not an instance of Float32Array]
expected: FAIL

[WebGL test #21: gl.getVertexAttrib(0, gl.CURRENT_VERTEX_ATTRIB) is not an instance of Float32Array]
expected: FAIL

[WebGL test #26: gl.getVertexAttrib(0, gl.CURRENT_VERTEX_ATTRIB) is not an instance of Float32Array]
expected: FAIL

[WebGL test #31: gl.getVertexAttrib(0, gl.CURRENT_VERTEX_ATTRIB) is not an instance of Float32Array]
expected: FAIL

[WebGL test #36: gl.getVertexAttrib(0, gl.CURRENT_VERTEX_ATTRIB) is not an instance of Float32Array]
expected: FAIL

[WebGL test #41: gl.getVertexAttrib(0, gl.CURRENT_VERTEX_ATTRIB) is not an instance of Float32Array]
expected: FAIL

[WebGL test #46: gl.getVertexAttrib(0, gl.CURRENT_VERTEX_ATTRIB) is not an instance of Float32Array]
expected: FAIL

[WebGL test #51: gl.getVertexAttrib(0, gl.CURRENT_VERTEX_ATTRIB) is not an instance of Float32Array]
expected: FAIL

[WebGL test #56: gl.getVertexAttrib(0, gl.CURRENT_VERTEX_ATTRIB) is not an instance of Float32Array]
expected: FAIL

[WebGL test #61: successfullyParsed should be true (of type boolean). Was undefined (of type undefined).]
expected: FAIL

@@ -0,0 +1,5 @@
[gl-vertexattribipointer-offsets.html]
expected: ERROR
[WebGL test #0: successfullyParsed should be true (of type boolean). Was undefined (of type undefined).]
expected: FAIL

@@ -0,0 +1,5 @@
[gl-vertexattribipointer.html]
expected: ERROR
[WebGL test #1: successfullyParsed should be true (of type boolean). Was undefined (of type undefined).]
expected: FAIL

@@ -0,0 +1,5 @@
[bound-buffer-size-change-test.html]
expected: ERROR
[WebGL test #0: successfullyParsed should be true (of type boolean). Was undefined (of type undefined).]
expected: FAIL

@@ -0,0 +1,5 @@
[buffer-copying-contents.html]
expected: ERROR
[WebGL test #1: successfullyParsed should be true (of type boolean). Was undefined (of type undefined).]
expected: FAIL

@@ -0,0 +1,5 @@
[buffer-copying-restrictions.html]
expected: ERROR
[Overall test]
expected: NOTRUN

@@ -0,0 +1,14 @@
[buffer-data-and-buffer-sub-data-sub-source.html]
expected: ERROR
[WebGL test #3: getError expected: INVALID_VALUE. Was NO_ERROR : calling bufferData when srcOffset + length is larger than source size]
expected: FAIL

[WebGL test #4: getError expected: INVALID_VALUE. Was NO_ERROR : calling bufferData when srcOffset + length is larger than source size]
expected: FAIL

[WebGL test #5: getError expected: INVALID_VALUE. Was NO_ERROR : calling bufferData when srcOffset + length is larger than source size]
expected: FAIL

[WebGL test #7: successfullyParsed should be true (of type boolean). Was undefined (of type undefined).]
expected: FAIL

@@ -0,0 +1,5 @@
[buffer-overflow-test.html]
expected: ERROR
[WebGL test #0: successfullyParsed should be true (of type boolean). Was undefined (of type undefined).]
expected: FAIL

@@ -0,0 +1,5 @@
[buffer-type-restrictions.html]
expected: ERROR
[Overall test]
expected: NOTRUN

@@ -0,0 +1,38 @@
[get-buffer-sub-data.html]
expected: ERROR
[Overall test]
expected: NOTRUN

[WebGL test #2: gl.getBufferSubData(gl.ARRAY_BUFFER, 0, retArray) threw exception TypeError: gl.getBufferSubData is not a function]
expected: FAIL

[WebGL test #7: The returned array buffer fails to match original data]
expected: FAIL

[WebGL test #8: gl.getBufferSubData(gl.ARRAY_BUFFER, 0, retArray, 2) threw exception TypeError: gl.getBufferSubData is not a function]
expected: FAIL

[WebGL test #10: areArraysEqual(retArray.slice(2), floatArray.slice(0, floatArray.length - 2)) should be true. Was false.]
expected: FAIL

[WebGL test #11: gl.getBufferSubData(gl.ARRAY_BUFFER, 0, retArray, retArray.length) threw exception TypeError: gl.getBufferSubData is not a function]
expected: FAIL

[WebGL test #13: gl.getBufferSubData(gl.ARRAY_BUFFER, 0, retArray, retArray.length + 1) threw exception TypeError: gl.getBufferSubData is not a function]
expected: FAIL

[WebGL test #14: gl.getBufferSubData(gl.ARRAY_BUFFER, 0, retArray, 2, 2) threw exception TypeError: gl.getBufferSubData is not a function]
expected: FAIL

[WebGL test #16: areArraysEqual(retArray.slice(2, 4), floatArray.slice(0, 2)) should be true. Was false.]
expected: FAIL

[WebGL test #18: gl.getBufferSubData(gl.ARRAY_BUFFER, 0, retArray, retArray.length - 1, 1) threw exception TypeError: gl.getBufferSubData is not a function]
expected: FAIL

[WebGL test #20: areArraysEqual(retArray.slice(8), floatArray.slice(0, 1)) should be true. Was false.]
expected: FAIL

[WebGL test #21: gl.getBufferSubData(gl.ARRAY_BUFFER, 0, retArray, retArray.length - 1, 2) threw exception TypeError: gl.getBufferSubData is not a function]
expected: FAIL

@@ -0,0 +1,4 @@
[one-large-uniform-buffer.html]
[WebGL test #1: Failed to set up the program]
expected: FAIL

@@ -0,0 +1,32 @@
[uniform-buffers.html]
expected: ERROR
[WebGL test #2: getError expected: NO_ERROR. Was INVALID_ENUM : UNIFORM_BUFFER_BINDING query should succeed]
expected: FAIL

[WebGL test #6: getError expected: NO_ERROR. Was INVALID_ENUM : should be able to bind uniform buffer]
expected: FAIL

[WebGL test #7: gl.getParameter(gl.UNIFORM_BUFFER_BINDING) should be [object WebGLBuffer\]. Was null.]
expected: FAIL

[WebGL test #8: getError expected: NO_ERROR. Was INVALID_ENUM : should be able to update uniform buffer binding]
expected: FAIL

[WebGL test #9: gl.getParameter(gl.UNIFORM_BUFFER_BINDING) should be [object WebGLBuffer\]. Was null.]
expected: FAIL

[WebGL test #10: getError expected: NO_ERROR. Was INVALID_ENUM : should be able to unbind uniform buffer]
expected: FAIL

[WebGL test #12: getError expected: INVALID_OPERATION. Was INVALID_ENUM : binding a deleted buffer should generate INVALID_OPERATION]
expected: FAIL

[WebGL test #15: Could not compile shader with uniform blocks without error]
expected: FAIL

[WebGL test #16: Could not compile shader with named uniform blocks without error]
expected: FAIL

[WebGL test #17: successfullyParsed should be true (of type boolean). Was undefined (of type undefined).]
expected: FAIL

0 comments on commit ec1f61d

Please sign in to comment.
You can’t perform that action at this time.