From 45a0c256e268e5857d38a505244a8d61186d0258 Mon Sep 17 00:00:00 2001 From: "Queen Vinyl Da.i'gyu-Kazotetsu" Date: Tue, 17 Dec 2024 03:48:29 -0800 Subject: [PATCH] Update custom tests for ImageData settings parameter --- custom/tests.yaml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/custom/tests.yaml b/custom/tests.yaml index 4cbdf611..f5408b13 100644 --- a/custom/tests.yaml +++ b/custom/tests.yaml @@ -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)) {