aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/SizeTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/SizeTest.cpp')
-rw-r--r--tests/SizeTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/SizeTest.cpp b/tests/SizeTest.cpp
index 9800aa29c3..9dccdeb6b3 100644
--- a/tests/SizeTest.cpp
+++ b/tests/SizeTest.cpp
@@ -16,7 +16,7 @@ DEF_TEST(ISize, reporter) {
REPORTER_ASSERT(reporter, a.isEmpty());
a.set(5, -5);
REPORTER_ASSERT(reporter, a.isEmpty());
- a.clampNegToZero();
+ a = SkISize{5, 0};
REPORTER_ASSERT(reporter, a.isEmpty());
b.set(5, 0);
REPORTER_ASSERT(reporter, a == b);
@@ -42,7 +42,7 @@ DEF_TEST(Size, reporter) {
REPORTER_ASSERT(reporter, a.isEmpty());
a.set(x, -x);
REPORTER_ASSERT(reporter, a.isEmpty());
- a.clampNegToZero();
+ a = SkSize{x, 0};
REPORTER_ASSERT(reporter, a.isEmpty());
b.set(x, 0);
REPORTER_ASSERT(reporter, a == b);