[Webkit-unassigned] [Bug 223319] webgl/1.0.4/conformance/misc/invalid-passed-params.html fails

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Mar 17 01:20:45 PDT 2021


https://bugs.webkit.org/show_bug.cgi?id=223319

--- Comment #3 from Kimmo Kinnunen <kkinnunen at apple.com> ---
https://www.khronos.org/registry/webgl/sdk/tests/conformance/misc/invalid-passed-params.html?webglVersion=1&quiet=0&quick=1

Test for invalid passed parameters

On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".


Test createShader()
PASS getError was expected value: NO_ERROR : after evaluating: context.createShader(context.FRAGMENT_SHADER)
PASS getError was expected value: NO_ERROR : after evaluating: context.createShader(context.VERTEX_SHADER)
PASS getError was expected value: INVALID_ENUM : after evaluating: context.createShader(0)
PASS getError was expected value: INVALID_ENUM : after evaluating: context.createShader(context.TRIANGLES)

Test clear()
PASS getError was expected value: INVALID_VALUE : after evaluating: context.clear(desktopGL['ACCUM_BUFFER_BIT'])
PASS getError was expected value: INVALID_VALUE : after evaluating: context.clear(desktopGL['ACCUM_BUFFER_BIT'] | context.COLOR_BUFFER_BIT)
PASS getError was expected value: INVALID_VALUE : after evaluating: context.clear(desktopGL['ACCUM_BUFFER_BIT'] | context.COLOR_BUFFER_BIT | context.DEPTH_BUFFER_BIT | context.STENCIL_BUFFER_BIT)
PASS getError was expected value: NO_ERROR : after evaluating: context.clear(context.COLOR_BUFFER_BIT | context.DEPTH_BUFFER_BIT | context.STENCIL_BUFFER_BIT)

Test {copy}Tex{Sub}Image2D with negative offset/width/height
PASS getError was expected value: NO_ERROR : after evaluating: context.bindTexture(context.TEXTURE_2D, tex)
PASS getError was expected value: INVALID_VALUE : after evaluating: context.texImage2D(context.TEXTURE_2D, 0, context.RGBA, -16, -16, 0, context.RGBA, context.UNSIGNED_BYTE, null)
PASS getError was expected value: NO_ERROR : after evaluating: context.texImage2D(context.TEXTURE_2D, 0, context.RGBA, 16, 16, 0, context.RGBA, context.UNSIGNED_BYTE, null)
PASS getError was expected value: INVALID_VALUE : after evaluating: context.texSubImage2D(context.TEXTURE_2D, 0, -1, -1, 2, 2, context.RGBA, context.UNSIGNED_BYTE, pixels)
PASS getError was expected value: INVALID_VALUE : after evaluating: context.texSubImage2D(context.TEXTURE_2D, 0, 0, 0, -1, -1, context.RGBA, context.UNSIGNED_BYTE, pixels)
PASS getError was expected value: NO_ERROR : after evaluating: context.texSubImage2D(context.TEXTURE_2D, 0, 0, 0, 2, 2, context.RGBA, context.UNSIGNED_BYTE, pixels)
PASS getError was expected value: INVALID_VALUE : after evaluating: context.copyTexImage2D(context.TEXTURE_2D, 0, context.RGBA, 0, 0, -1, -1, 0)
PASS getError was expected value: NO_ERROR : after evaluating: context.copyTexImage2D(context.TEXTURE_2D, 0, context.RGBA, 0, 0, 16, 16, 0)
PASS getError was expected value: INVALID_VALUE : after evaluating: context.copyTexSubImage2D(context.TEXTURE_2D, 0, -1, -1, 0, 0, 2, 2)
PASS getError was expected value: INVALID_VALUE : after evaluating: context.copyTexSubImage2D(context.TEXTURE_2D, 0, 0, 0, 0, 0, -1, -1)
PASS getError was expected value: NO_ERROR : after evaluating: context.copyTexSubImage2D(context.TEXTURE_2D, 0, 0, 0, 0, 0, 2, 2)

Test renderbufferStorage() with negative width/height
PASS getError was expected value: NO_ERROR : after evaluating: context.bindRenderbuffer(context.RENDERBUFFER, renderbuffer)
PASS getError was expected value: INVALID_VALUE : after evaluating: context.renderbufferStorage(context.RENDERBUFFER, context.RGBA4, -2, -2)
PASS getError was expected value: NO_ERROR : after evaluating: context.renderbufferStorage(context.RENDERBUFFER, context.RGBA4, 16, 16)

Test scissor() with negative width/height
PASS getError was expected value: INVALID_VALUE : after evaluating: context.scissor(0, 0, -2, -2)
PASS getError was expected value: NO_ERROR : after evaluating: context.scissor(0, 0, 16, 16)

Test viewport() with negative width/height
PASS getError was expected value: INVALID_VALUE : after evaluating: context.viewport(0, 0, -2, -2)
PASS getError was expected value: NO_ERROR : after evaluating: context.viewport(0, 0, 16, 16)

Set up a program to test invalid characters
PASS context.getError() is context.NO_ERROR
PASS context.getError() is context.NO_ERROR
PASS linkStatus is true
PASS context.getError() is context.NO_ERROR
PASS context.getError() is context.NO_ERROR
PASS context.getError() is context.NO_ERROR
PASS context.getError() is context.NO_ERROR

Test shaderSource() with invalid characters
PASS context.getError() is context.NO_ERROR
FAIL context.getError() should be 0. Was 1281.
PASS context.getError() is context.NO_ERROR
FAIL context.getError() should be 0. Was 1281.
PASS context.getError() is context.NO_ERROR
FAIL context.getError() should be 0. Was 1281.
PASS context.getError() is context.NO_ERROR
FAIL context.getError() should be 0. Was 1281.
PASS context.getError() is context.NO_ERROR
FAIL context.getError() should be 0. Was 1281.
PASS context.getError() is context.NO_ERROR
FAIL context.getError() should be 0. Was 1281.

Test bindAttribLocation() with invalid characters
PASS context.getError() is context.INVALID_VALUE
PASS context.getError() is context.INVALID_VALUE
PASS context.getError() is context.INVALID_VALUE
PASS context.getError() is context.INVALID_VALUE
PASS context.getError() is context.INVALID_VALUE
PASS context.getError() is context.INVALID_VALUE

Test getAttribLocation() with invalid characters
PASS context.getError() is context.INVALID_VALUE
PASS context.getError() is context.INVALID_VALUE
PASS context.getError() is context.INVALID_VALUE
PASS context.getError() is context.INVALID_VALUE
PASS context.getError() is context.INVALID_VALUE
PASS context.getError() is context.INVALID_VALUE

Test getUniformLocation() with invalid characters
PASS context.getError() is context.INVALID_VALUE
PASS context.getError() is context.INVALID_VALUE
PASS context.getError() is context.INVALID_VALUE
PASS context.getError() is context.INVALID_VALUE
PASS context.getError() is context.INVALID_VALUE
PASS context.getError() is context.INVALID_VALUE

PASS successfullyParsed is true

TEST COMPLETE

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210317/dacf11ef/attachment.htm>


More information about the webkit-unassigned mailing list