From 65da6d748e2726682b4c0c9f132b23bdbb88048f Mon Sep 17 00:00:00 2001 From: Shruti2110-coder Date: Mon, 7 Sep 2026 21:42:23 +0530 Subject: [PATCH] Re-enable passing HSLA/HSBA getter tests in p5.Color --- test/unit/color/p5.Color.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/unit/color/p5.Color.js b/test/unit/color/p5.Color.js index 5021a53f18..61f34dddf2 100644 --- a/test/unit/color/p5.Color.js +++ b/test/unit/color/p5.Color.js @@ -464,7 +464,7 @@ suite('p5.Color', function () { c = mockP5Prototype.color('rgba(255, 0, 102, 0.8)'); }); - test.todo('should correctly get HSLA property', function () { + test('should correctly get HSLA property', function () { assert.approximately(c._getHue(), 336, 0.5); assert.approximately(c._getSaturation(), 100, 0.5); assert.approximately(c._getLightness(), 50, 0.5); @@ -487,7 +487,7 @@ suite('p5.Color', function () { c = mockP5Prototype.color('hsla(336, 100%, 50%, 0.8)'); }); - test.todo('should correctly get HSLA property', function () { + test('should correctly get HSLA property', function () { assert.approximately(c._getHue(), 336, 0.5); assert.approximately(c._getSaturation(), 100, 0.5); assert.approximately(c._getLightness(), 50, 0.5); @@ -514,7 +514,7 @@ suite('p5.Color', function () { c = mockP5Prototype.color('hsba(336, 100%, 100%, 0.8)'); }); - test.todo('should correctly get HSLA property', function () { + test('should correctly get HSLA property', function () { assert.approximately(c._getHue(), 336, 0.5); assert.approximately(c._getSaturation(), 100, 0.5); assert.approximately(c._getLightness(), 50, 0.5); @@ -634,7 +634,7 @@ suite('p5.Color', function () { c = mockP5Prototype.color('rgba(255, 0, 102, 0.8)'); }); - test.todo('should correctly get HSBA property', function () { + test('should correctly get HSBA property', function () { assert.approximately(c._getHue(), 336, 0.5); assert.approximately(c._getSaturation(), 100, 0.5); assert.approximately(c._getBrightness(), 100, 0.5); @@ -682,7 +682,7 @@ suite('p5.Color', function () { c = mockP5Prototype.color('hsla(336, 100%, 50%, 0.8)'); }); - test.todo('should correctly get HSBA property', function () { + test('should correctly get HSBA property', function () { assert.approximately(c._getHue(), 336, 0.5); assert.approximately(c._getSaturation(), 100, 0.5); assert.approximately(c._getBrightness(), 100, 0.5);