Bug 223319 - webgl/1.0.4/conformance/misc/invalid-passed-params.html fails
Summary: webgl/1.0.4/conformance/misc/invalid-passed-params.html fails
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebGL (show other bugs)
Version: Other
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
: 223338 (view as bug list)
Depends on:
Blocks: webgl2conformance
  Show dependency treegraph
 
Reported: 2021-03-16 23:36 PDT by Kimmo Kinnunen
Modified: 2021-03-23 23:37 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kimmo Kinnunen 2021-03-16 23:36:16 PDT
webgl/1.0.4/conformance/misc/invalid-passed-params.html fails
Comment 1 Kimmo Kinnunen 2021-03-17 00:27:23 PDT
*** Bug 223339 has been marked as a duplicate of this bug. ***
Comment 2 Kimmo Kinnunen 2021-03-17 00:28:17 PDT
*** Bug 223338 has been marked as a duplicate of this bug. ***
Comment 3 Kimmo Kinnunen 2021-03-17 01:20:45 PDT
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
Comment 4 Kimmo Kinnunen 2021-03-17 01:45:54 PDT
At least macOS 11.3, iMacPro1,1, Radeon Pro Vega 56
Comment 5 Radar WebKit Bug Importer 2021-03-23 23:37:14 PDT
<rdar://problem/75772693>