script: Throw a TypeError when trying to create an OffscreenCanvas with an unknown context type (#34276)

* fixing test failures that involves throwing TypeError

Signed-off-by: L Ashwin B <lashwinib@gmail.com>

* handle all unknown values in a single fallback case

Signed-off-by: L Ashwin B <lashwinib@gmail.com>

* updating few more test- expectations

Signed-off-by: L Ashwin B <lashwinib@gmail.com>

---------

Signed-off-by: L Ashwin B <lashwinib@gmail.com>
This commit is contained in:
chickenleaf 2024-11-21 14:53:52 -08:00 committed by GitHub
parent bd9843405a
commit 1f0b88934b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
17 changed files with 23 additions and 32 deletions

View file

@ -5,9 +5,6 @@
[Test that webglcontext.canvas should return the original OffscreenCanvas]
expected: FAIL
[Test that getContext with un-supported string throws a TypeError.]
expected: FAIL
[Test that OffscreenCanvasRenderingContext2D with alpha disabled makes the OffscreenCanvas opaque]
expected: FAIL

View file

@ -5,9 +5,6 @@
[Test that webglcontext.canvas should return the original OffscreenCanvas]
expected: FAIL
[Test that getContext with un-supported string throws a TypeError.]
expected: FAIL
[Test that OffscreenCanvasRenderingContext2D with alpha disabled makes the OffscreenCanvas opaque]
expected: FAIL