diff options
author | chickenleaf <lashwinib@gmail.com> | 2024-11-21 14:53:52 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-21 22:53:52 +0000 |
commit | 1f0b88934b628b49ad12db599ec36fc552bd49fd (patch) | |
tree | 2706ba7e8c273d7ad3f38e6c9b8a59a960830b79 /tests/wpt/meta/html/canvas | |
parent | bd9843405a04c062df982ef9fa917bbb756149a9 (diff) | |
download | servo-1f0b88934b628b49ad12db599ec36fc552bd49fd.tar.gz servo-1f0b88934b628b49ad12db599ec36fc552bd49fd.zip |
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>
Diffstat (limited to 'tests/wpt/meta/html/canvas')
8 files changed, 0 insertions, 24 deletions
diff --git a/tests/wpt/meta/html/canvas/offscreen/canvas-context/2d.canvas.context.casesensitive.html.ini b/tests/wpt/meta/html/canvas/offscreen/canvas-context/2d.canvas.context.casesensitive.html.ini deleted file mode 100644 index 64e281aae16..00000000000 --- a/tests/wpt/meta/html/canvas/offscreen/canvas-context/2d.canvas.context.casesensitive.html.ini +++ /dev/null @@ -1,3 +0,0 @@ -[2d.canvas.context.casesensitive.html] - [Context name "2D" is unrecognised; matching is case sensitive] - expected: FAIL diff --git a/tests/wpt/meta/html/canvas/offscreen/canvas-context/2d.canvas.context.casesensitive.worker.js.ini b/tests/wpt/meta/html/canvas/offscreen/canvas-context/2d.canvas.context.casesensitive.worker.js.ini deleted file mode 100644 index 27e9dca7c02..00000000000 --- a/tests/wpt/meta/html/canvas/offscreen/canvas-context/2d.canvas.context.casesensitive.worker.js.ini +++ /dev/null @@ -1,3 +0,0 @@ -[2d.canvas.context.casesensitive.worker.html] - [Context name "2D" is unrecognised; matching is case sensitive] - expected: FAIL diff --git a/tests/wpt/meta/html/canvas/offscreen/canvas-context/2d.canvas.context.emptystring.html.ini b/tests/wpt/meta/html/canvas/offscreen/canvas-context/2d.canvas.context.emptystring.html.ini deleted file mode 100644 index 2c3eefedcd0..00000000000 --- a/tests/wpt/meta/html/canvas/offscreen/canvas-context/2d.canvas.context.emptystring.html.ini +++ /dev/null @@ -1,3 +0,0 @@ -[2d.canvas.context.emptystring.html] - [getContext with empty string returns null] - expected: FAIL diff --git a/tests/wpt/meta/html/canvas/offscreen/canvas-context/2d.canvas.context.emptystring.worker.js.ini b/tests/wpt/meta/html/canvas/offscreen/canvas-context/2d.canvas.context.emptystring.worker.js.ini deleted file mode 100644 index cc368ac511e..00000000000 --- a/tests/wpt/meta/html/canvas/offscreen/canvas-context/2d.canvas.context.emptystring.worker.js.ini +++ /dev/null @@ -1,3 +0,0 @@ -[2d.canvas.context.emptystring.worker.html] - [getContext with empty string returns null] - expected: FAIL diff --git a/tests/wpt/meta/html/canvas/offscreen/canvas-context/2d.canvas.context.invalid.args.html.ini b/tests/wpt/meta/html/canvas/offscreen/canvas-context/2d.canvas.context.invalid.args.html.ini deleted file mode 100644 index b942e4f7dc2..00000000000 --- a/tests/wpt/meta/html/canvas/offscreen/canvas-context/2d.canvas.context.invalid.args.html.ini +++ /dev/null @@ -1,3 +0,0 @@ -[2d.canvas.context.invalid.args.html] - [Calling getContext with invalid arguments.] - expected: FAIL diff --git a/tests/wpt/meta/html/canvas/offscreen/canvas-context/2d.canvas.context.invalid.args.worker.js.ini b/tests/wpt/meta/html/canvas/offscreen/canvas-context/2d.canvas.context.invalid.args.worker.js.ini deleted file mode 100644 index cb833a67760..00000000000 --- a/tests/wpt/meta/html/canvas/offscreen/canvas-context/2d.canvas.context.invalid.args.worker.js.ini +++ /dev/null @@ -1,3 +0,0 @@ -[2d.canvas.context.invalid.args.worker.html] - [Calling getContext with invalid arguments.] - expected: FAIL diff --git a/tests/wpt/meta/html/canvas/offscreen/manual/the-offscreen-canvas/offscreencanvas.getcontext.html.ini b/tests/wpt/meta/html/canvas/offscreen/manual/the-offscreen-canvas/offscreencanvas.getcontext.html.ini index 44861ea868c..0ef32f676fc 100644 --- a/tests/wpt/meta/html/canvas/offscreen/manual/the-offscreen-canvas/offscreencanvas.getcontext.html.ini +++ b/tests/wpt/meta/html/canvas/offscreen/manual/the-offscreen-canvas/offscreencanvas.getcontext.html.ini @@ -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 diff --git a/tests/wpt/meta/html/canvas/offscreen/manual/the-offscreen-canvas/offscreencanvas.getcontext.worker.js.ini b/tests/wpt/meta/html/canvas/offscreen/manual/the-offscreen-canvas/offscreencanvas.getcontext.worker.js.ini index 731fa902899..54b6ae58825 100644 --- a/tests/wpt/meta/html/canvas/offscreen/manual/the-offscreen-canvas/offscreencanvas.getcontext.worker.js.ini +++ b/tests/wpt/meta/html/canvas/offscreen/manual/the-offscreen-canvas/offscreencanvas.getcontext.worker.js.ini @@ -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 |