Skip to content

Commit

Permalink
Add missing assert statements in equals.tentative.html.
Browse files Browse the repository at this point in the history
The test cases for CSSMathClamp should have assert statements.

Bug: 1292345
Change-Id: I0bed4e8efe615f8e27d240c17ab71123c76aa62e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3439447
Reviewed-by: Xiaocheng Hu <xiaochengh@chromium.org>
Commit-Queue: 박중헌 <pjh0718@gmail.com>
Cr-Commit-Position: refs/heads/main@{#967546}
  • Loading branch information
joonghunpark authored and pull[bot] committed Jun 26, 2023
1 parent 8f14c4d commit bb08bdb
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,13 @@
test(() => {
const a = new CSSMathClamp(1, 2, 3);
const b = new CSSMathClamp(CSS.number(1), CSS.number(2), CSS.number(3));
assert_true(a.equals(b));
}, 'Two CSSMathClamp with same value and unit are equal');

test(() => {
const a = new CSSMathClamp(1, 2, 3);
const b = new CSSMathClamp(CSS.px(1), CSS.px(2), CSS.px(3));
assert_false(a.equals(b));
}, 'Two CSSMathClamp with different units are not equal');

</script>

0 comments on commit bb08bdb

Please sign in to comment.