Bug 223319
Summary: | webgl/1.0.4/conformance/misc/invalid-passed-params.html fails | ||
---|---|---|---|
Product: | WebKit | Reporter: | Kimmo Kinnunen <kkinnunen> |
Component: | WebGL | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW | ||
Severity: | Normal | CC: | dino, kbr, kkinnunen, webkit-bug-importer |
Priority: | P2 | Keywords: | InRadar |
Version: | Other | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Bug Depends on: | |||
Bug Blocks: | 222812 |
Kimmo Kinnunen
webgl/1.0.4/conformance/misc/invalid-passed-params.html fails
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Kimmo Kinnunen
*** Bug 223339 has been marked as a duplicate of this bug. ***
Kimmo Kinnunen
*** Bug 223338 has been marked as a duplicate of this bug. ***
Kimmo Kinnunen
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
Kimmo Kinnunen
At least macOS 11.3, iMacPro1,1, Radeon Pro Vega 56
Radar WebKit Bug Importer
<rdar://problem/75772693>