Changeset 143373 in webkit


Ignore:
Timestamp:
Feb 19, 2013 12:43:48 PM (11 years ago)
Author:
commit-queue@webkit.org
Message:

[WebGL] Fix oes-element-index-uint.html test.
https://bugs.webkit.org/show_bug.cgi?id=110045

Patch by Kondapally Kalyan <kalyan.kondapally@intel.com> on 2013-02-19
Reviewed by Kenneth Russell.

This patch fixes the test case to use updated WebGLTestUtils functions
and adds shaders used during resized buffer tests. This patch
also enables the test for EFL port.

  • fast/canvas/webgl/oes-element-index-uint-expected.txt:
  • fast/canvas/webgl/oes-element-index-uint.html:
  • platform/efl/TestExpectations:
Location:
trunk/LayoutTests
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r143367 r143373  
     12013-02-19  Kondapally Kalyan  <kalyan.kondapally@intel.com>
     2
     3        [WebGL] Fix oes-element-index-uint.html test.
     4        https://bugs.webkit.org/show_bug.cgi?id=110045
     5
     6        Reviewed by Kenneth Russell.
     7
     8        This patch fixes the test case to use updated WebGLTestUtils functions
     9        and adds shaders used during resized buffer tests. This patch
     10        also enables the test for EFL port.
     11
     12        * fast/canvas/webgl/oes-element-index-uint-expected.txt:
     13        * fast/canvas/webgl/oes-element-index-uint.html:
     14        * platform/efl/TestExpectations:
     15
    1162013-02-19  Adrienne Walker  <enne@chromium.org>
    217
  • trunk/LayoutTests/fast/canvas/webgl/oes-element-index-uint-expected.txt

    r131780 r143373  
    6161
    6262TEST COMPLETE
     63
  • trunk/LayoutTests/fast/canvas/webgl/oes-element-index-uint.html

    r131780 r143373  
    1313<canvas id="canvas" style="width: 50px; height: 50px;"> </canvas>
    1414<div id="console"></div>
     15<script id="vs" type="x-shader/x-vertex">
     16attribute vec4 vPosition;
     17attribute vec4 vColor;
     18varying vec4 color;
     19void main() {
     20    gl_Position = vPosition;
     21    color = vColor;
     22}
     23</script>
     24<script id="fs" type="x-shader/x-fragment">
     25#if defined(GL_ES)
     26precision mediump float;
     27#endif
     28varying vec4 color;
     29void main() {
     30  gl_FragColor = color;
     31}
     32</script>
    1533<script>
    1634description("This test verifies the functionality of the OES_element_index_uint extension, if it is available.");
    1735
    1836debug("");
     37
     38if (window.internals)
     39    window.internals.settings.setWebGLErrorsToConsoleEnabled(false);
    1940
    2041var wtu = WebGLTestUtils;
     
    7697    gl.viewport(0, 0, canvas.width, canvas.height);
    7798   
    78     var program = wtu.setupNoTexCoordTextureProgram(gl);
     99    var program = wtu.setupSimpleTextureProgram(gl);
    79100
    80101    function setupDraw(s) {
     
    262283    glErrorShouldBe(gl, gl.INVALID_VALUE);
    263284    shouldBeUndefined('gl.drawElements(gl.TRIANGLES, 3, gl.UNSIGNED_INT, 0)');
     285    gl.disableVertexAttribArray(vertexLoc);
    264286}
    265287
     
    295317    debug("Test that updating the size of a vertex buffer is properly noticed by the WebGL implementation.");
    296318
    297     var program = setupProgram(gl, "vs", "fs", ["vPosition", "vColor"]);
     319    var program = wtu.setupProgram(gl, ["vs", "fs"], ["vPosition", "vColor"]);
    298320    glErrorShouldBe(gl, gl.NO_ERROR, "after initialization");
    299321
     
    390412    testPassed("bufferSubData, when buffer object was initialized with null, did not crash");
    391413}
     414
     415debug("");
     416successfullyParsed = true;
     417isSuccessfullyParsed();
     418
    392419</script>
    393 <script src="../../resources/js-test-post.js"></script>
    394 
    395420</body>
    396421</html>
  • trunk/LayoutTests/platform/efl/TestExpectations

    r143352 r143373  
    345345
    346346webkit.org/b/99096 fast/canvas/webgl/arraybuffer-transfer-of-control.html [ Failure Pass ]
    347 
    348 # Expected to fail until OES_element_index_uint extension is implemented
    349 webkit.org/b/98257 fast/canvas/webgl/oes-element-index-uint.html [ Failure Pass ]
    350347
    351348#////////////////////////////////////////////////////////////////////////////////////////
Note: See TracChangeset for help on using the changeset viewer.