Skip to content

Commit d48a661

Browse files
committed
fix failing isHexColor test
1 parent dd079f0 commit d48a661

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/browser/cssom/CSSStyleDeclaration.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,6 +551,7 @@ test "Browser: CSS.StyleDeclaration: isNumericWithUnit - edge cases and invalid
551551

552552
test "Browser: CSS.StyleDeclaration: isHexColor - valid hex colors" {
553553
try testing.expect(isHexColor("#000"));
554+
try testing.expect(isHexColor("#0000"));
554555
try testing.expect(isHexColor("#fff"));
555556
try testing.expect(isHexColor("#123456"));
556557
try testing.expect(isHexColor("#abcdef"));
@@ -563,7 +564,6 @@ test "Browser: CSS.StyleDeclaration: isHexColor - invalid hex colors" {
563564
try testing.expect(!isHexColor("#"));
564565
try testing.expect(!isHexColor("000"));
565566
try testing.expect(!isHexColor("#00"));
566-
try testing.expect(!isHexColor("#0000"));
567567
try testing.expect(!isHexColor("#00000"));
568568
try testing.expect(!isHexColor("#0000000"));
569569
try testing.expect(!isHexColor("#000000000"));

0 commit comments

Comments
 (0)