Skip to content

Commit

Permalink
Update custom tests for ImageData settings parameter (#2037)
Browse files Browse the repository at this point in the history
  • Loading branch information
queengooborg authored Dec 17, 2024
1 parent 17f6b71 commit 21abebf
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion custom/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3136,8 +3136,20 @@ api:
if (!('ImageData' in self)) {
return {result: false, message: 'ImageData is not defined'}
}
instance = new ImageData(16, 16, { colorSpace: "display-p3" });
instance = new ImageData(new Uint8ClampedArray(4*16*16), 16, 16, { colorSpace: "display-p3" });
return instance.colorSpace == "display-p3";
ImageData.settings_parameter.colorSpace_option: |-
if (!('ImageData' in self)) {
return {result: false, message: 'ImageData is not defined'}
}
instance = new ImageData(new Uint8ClampedArray(4*16*16), 16, 16, { colorSpace: "display-p3" });
return instance.colorSpace == "display-p3";
ImageData.settings_parameter.desynchronized_option: |-
if (!('ImageData' in self)) {
return {result: false, message: 'ImageData is not defined'}
}
instance = new ImageData(new Uint8ClampedArray(4*16*16), 16, 16, { desynchronized: true });
return instance.desynchronized == true;
InkPresenter:
__base: |-
if (!('ink' in navigator)) {
Expand Down

0 comments on commit 21abebf

Please sign in to comment.