Skip to content

Commit f35c04a

Browse files
authored
[cssom] Make an test assertion not show the number of CSS properties if it fails.
That causes unnecessary pain when updating tests across platforms, etc., and also unnecessary test failures when adding new properties for example.
1 parent b4f290c commit f35c04a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

css/cssom/getComputedStyle-detached-subtree.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
assert_true(!!element);
1818
let style = getComputedStyle(element);
1919
assert_true(!!style);
20-
assert_equals(style.length, 0);
20+
assert_true(style.length === 0);
2121
assert_equals(style.color, "");
2222
}, `getComputedStyle returns no style for ${description}`);
2323
}

0 commit comments

Comments
 (0)