mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
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:
parent
bd9843405a
commit
1f0b88934b
17 changed files with 23 additions and 32 deletions
|
@ -19,7 +19,7 @@ interface OffscreenCanvas : EventTarget {
|
|||
attribute [EnforceRange] unsigned long long width;
|
||||
attribute [EnforceRange] unsigned long long height;
|
||||
|
||||
OffscreenRenderingContext? getContext(DOMString contextId, optional any options = null);
|
||||
[Throws] OffscreenRenderingContext? getContext(DOMString contextId, optional any options = null);
|
||||
//ImageBitmap transferToImageBitmap();
|
||||
//Promise<Blob> convertToBlob(optional ImageEncodeOptions options);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue