Lines Matching refs:reporter

16 static void test_tricky_radii(skiatest::Reporter* reporter) {
35 REPORTER_ASSERT(reporter, (double) rr.radii(SkRRect::kUpperRight_Corner).fY +
41 static void test_empty_crbug_458524(skiatest::Reporter* reporter) {
51 REPORTER_ASSERT(reporter, SkRRect::kEmpty_Type == other.getType());
56 static void test_empty(skiatest::Reporter* reporter) {
76 REPORTER_ASSERT(reporter, !r.isEmpty());
77 REPORTER_ASSERT(reporter, r.rect() == oooRects[i].makeSorted());
80 REPORTER_ASSERT(reporter, !r.isEmpty());
81 REPORTER_ASSERT(reporter, r.rect() == oooRects[i].makeSorted());
84 REPORTER_ASSERT(reporter, !r.isEmpty());
85 REPORTER_ASSERT(reporter, r.rect() == oooRects[i].makeSorted());
88 REPORTER_ASSERT(reporter, !r.isEmpty());
89 REPORTER_ASSERT(reporter, r.rect() == oooRects[i].makeSorted());
92 REPORTER_ASSERT(reporter, !r.isEmpty());
93 REPORTER_ASSERT(reporter, r.rect() == oooRects[i].makeSorted());
98 REPORTER_ASSERT(reporter, r.isEmpty());
99 REPORTER_ASSERT(reporter, r.rect() == emptyRects[i]);
102 REPORTER_ASSERT(reporter, r.isEmpty());
103 REPORTER_ASSERT(reporter, r.rect() == emptyRects[i]);
106 REPORTER_ASSERT(reporter, r.isEmpty());
107 REPORTER_ASSERT(reporter, r.rect() == emptyRects[i]);
110 REPORTER_ASSERT(reporter, r.isEmpty());
111 REPORTER_ASSERT(reporter, r.rect() == emptyRects[i]);
114 REPORTER_ASSERT(reporter, r.isEmpty());
115 REPORTER_ASSERT(reporter, r.rect() == emptyRects[i]);
119 REPORTER_ASSERT(reporter, r == SkRRect::MakeEmpty());
121 REPORTER_ASSERT(reporter, r == SkRRect::MakeEmpty());
127 static void test_inset(skiatest::Reporter* reporter) {
133 REPORTER_ASSERT(reporter, rr2.isRect());
136 REPORTER_ASSERT(reporter, rr2.isRect());
139 REPORTER_ASSERT(reporter, rr2.isEmpty());
143 REPORTER_ASSERT(reporter, rr2.isSimple());
145 REPORTER_ASSERT(reporter, rr2.isRect());
149 static void test_9patch_rrect(skiatest::Reporter* reporter,
156 REPORTER_ASSERT(reporter, SkRRect::kNinePatch_Type == rr.type());
157 REPORTER_ASSERT(reporter, rr.rect() == rect);
165 REPORTER_ASSERT(reporter, rquad[i] == rr.radii((SkRRect::Corner) i));
171 REPORTER_ASSERT(reporter, rr2 == rr && rr2.getType() == rr.getType());
175 static void test_round_rect_basic(skiatest::Reporter* reporter) {
182 REPORTER_ASSERT(reporter, SkRRect::kEmpty_Type == empty.type());
183 REPORTER_ASSERT(reporter, empty.rect().isEmpty());
186 REPORTER_ASSERT(reporter, zeroPt == empty.radii((SkRRect::Corner) i));
195 REPORTER_ASSERT(reporter, SkRRect::kRect_Type == rr1.type());
196 REPORTER_ASSERT(reporter, rr1.rect() == rect);
199 REPORTER_ASSERT(reporter, zeroPt == rr1.radii((SkRRect::Corner) i));
204 REPORTER_ASSERT(reporter, rr1_2 == rr1 && rr1_2.getType() == rr1.getType());
207 REPORTER_ASSERT(reporter, rr1_3 == rr1 && rr1_3.getType() == rr1.getType());
214 REPORTER_ASSERT(reporter, SkRRect::kOval_Type == rr2.type());
215 REPORTER_ASSERT(reporter, rr2.rect() == rect);
218 REPORTER_ASSERT(reporter,
226 REPORTER_ASSERT(reporter, rr2_2 == rr2 && rr2_2.getType() == rr2.getType());
229 REPORTER_ASSERT(reporter, rr2_3 == rr2 && rr2_3.getType() == rr2.getType());
236 REPORTER_ASSERT(reporter, SkRRect::kSimple_Type == rr3.type());
237 REPORTER_ASSERT(reporter, rr3.rect() == rect);
240 REPORTER_ASSERT(reporter, p == rr3.radii((SkRRect::Corner) i));
245 REPORTER_ASSERT(reporter, rr3_2 == rr3 && rr3_2.getType() == rr3.getType());
248 REPORTER_ASSERT(reporter, rr3_3 == rr3 && rr3_3.getType() == rr3.getType());
251 test_9patch_rrect(reporter, rect, 10, 9, 8, 7, true);
257 test_9patch_rrect(reporter,
269 REPORTER_ASSERT(reporter, SkRRect::kComplex_Type == rr5.type());
270 REPORTER_ASSERT(reporter, rr5.rect() == rect);
273 REPORTER_ASSERT(reporter, radii2[i] == rr5.radii((SkRRect::Corner) i));
277 REPORTER_ASSERT(reporter, empty != rr3);
278 REPORTER_ASSERT(reporter, rr3 != rr5);
282 static void test_round_rect_rects(skiatest::Reporter* reporter) {
290 REPORTER_ASSERT(reporter, SkRRect::kEmpty_Type == empty.type());
292 REPORTER_ASSERT(reporter, 0 == r.fLeft && 0 == r.fTop && 0 == r.fRight && 0 == r.fBottom);
299 REPORTER_ASSERT(reporter, SkRRect::kRect_Type == rr1.type());
301 REPORTER_ASSERT(reporter, rect == r);
309 REPORTER_ASSERT(reporter, SkRRect::kRect_Type == rr2.type());
311 REPORTER_ASSERT(reporter, rect == r);
318 REPORTER_ASSERT(reporter, SkRRect::kComplex_Type == rr3.type());
322 static void test_round_rect_ovals(skiatest::Reporter* reporter) {
329 REPORTER_ASSERT(reporter, SkRRect::kOval_Type == rr1.type());
331 REPORTER_ASSERT(reporter, oval == rect);
335 static void test_round_rect_general(skiatest::Reporter* reporter) {
341 REPORTER_ASSERT(reporter, SkRRect::kSimple_Type == rr1.type());
349 REPORTER_ASSERT(reporter, SkRRect::kComplex_Type == rr2.type());
353 static void test_round_rect_iffy_parameters(skiatest::Reporter* reporter) {
363 REPORTER_ASSERT(reporter, SkRRect::kComplex_Type == rr1.type());
367 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(p.fX, 33.33333f));
368 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(p.fY, 66.66666f));
374 REPORTER_ASSERT(reporter, SkRRect::kRect_Type == rr2.type());
378 REPORTER_ASSERT(reporter, 0.0f == p2.fX);
379 REPORTER_ASSERT(reporter, 0.0f == p2.fY);
384 static void test_direction(skiatest::Reporter* reporter, const SkRRect &rr,
394 REPORTER_ASSERT(reporter, contains[i] == rr.contains(test));
402 static void test_round_rect_contains_rect(skiatest::Reporter* reporter) {
432 REPORTER_ASSERT(reporter, !rrects[i].contains(easyOuts[j]));
505 test_direction(reporter, rrects[i], 0, 1, 0, 1, kNumSteps, answers[i][0]); // NW
506 test_direction(reporter, rrects[i], 19.5f, 0, 0, 1, kNumSteps, answers[i][1]); // N
507 test_direction(reporter, rrects[i], 40, -1, 0, 1, kNumSteps, answers[i][2]); // NE
508 test_direction(reporter, rrects[i], 40, -1, 19.5f, 0, kNumSteps, answers[i][3]); // E
509 test_direction(reporter, rrects[i], 40, -1, 40, -1, kNumSteps, answers[i][4]); // SE
510 test_direction(reporter, rrects[i], 19.5f, 0, 40, -1, kNumSteps, answers[i][5]); // S
511 test_direction(reporter, rrects[i], 0, 1, 40, -1, kNumSteps, answers[i][6]); // SW
512 test_direction(reporter, rrects[i], 0, 1, 19.5f, 0, kNumSteps, answers[i][7]); // W
517 static void assert_transform_failure(skiatest::Reporter* reporter, const SkRRect& orig,
528 REPORTER_ASSERT(reporter, !success);
530 REPORTER_ASSERT(reporter, copyOfDst == dst);
532 REPORTER_ASSERT(reporter, copyOfOrig == orig);
533 REPORTER_ASSERT(reporter, orig != dst);
547 static void test_transform_helper(skiatest::Reporter* reporter, const SkRRect& orig) {
553 REPORTER_ASSERT(reporter, success);
554 REPORTER_ASSERT(reporter, orig == dst);
560 assert_transform_failure(reporter, orig, matrix);
564 assert_transform_failure(reporter, orig, matrix);
568 assert_transform_failure(reporter, orig, matrix);
572 assert_transform_failure(reporter, orig, matrix);
577 assert_transform_failure(reporter, orig, matrix);
587 REPORTER_ASSERT(reporter, success);
589 REPORTER_ASSERT(reporter,
592 REPORTER_ASSERT(reporter, orig.rect().width() == dst.rect().width());
593 REPORTER_ASSERT(reporter, orig.rect().height() == dst.rect().height());
594 REPORTER_ASSERT(reporter, dst.rect().left() == orig.rect().left() + translateX);
595 REPORTER_ASSERT(reporter, dst.rect().top() == orig.rect().top() + translateY);
599 assert_transform_failure(reporter, orig, matrix);
606 REPORTER_ASSERT(reporter, success);
610 REPORTER_ASSERT(reporter, origUL == dstUR);
611 REPORTER_ASSERT(reporter, origUR == dstUL);
612 REPORTER_ASSERT(reporter, origLR == dstLL);
613 REPORTER_ASSERT(reporter, origLL == dstLR);
616 REPORTER_ASSERT(reporter, orig.rect().width() == dst.rect().width());
617 REPORTER_ASSERT(reporter, orig.rect().height() == dst.rect().height());
619 REPORTER_ASSERT(reporter, orig.rect().right() == -dst.rect().left());
621 REPORTER_ASSERT(reporter, orig.rect().top() == dst.rect().top());
625 assert_transform_failure(reporter, orig, matrix);
632 REPORTER_ASSERT(reporter, success);
636 REPORTER_ASSERT(reporter, origUL == dstLL);
637 REPORTER_ASSERT(reporter, origUR == dstLR);
638 REPORTER_ASSERT(reporter, origLR == dstUR);
639 REPORTER_ASSERT(reporter, origLL == dstUL);
642 REPORTER_ASSERT(reporter, orig.rect().width() == dst.rect().width());
643 REPORTER_ASSERT(reporter, orig.rect().height() == dst.rect().height());
645 REPORTER_ASSERT(reporter, orig.rect().top() == -dst.rect().bottom());
647 REPORTER_ASSERT(reporter, orig.rect().left() == dst.rect().left());
655 REPORTER_ASSERT(reporter, success);
658 REPORTER_ASSERT(reporter, origUL == dstLR);
659 REPORTER_ASSERT(reporter, origUR == dstLL);
660 REPORTER_ASSERT(reporter, origLR == dstUL);
661 REPORTER_ASSERT(reporter, origLL == dstUR);
664 REPORTER_ASSERT(reporter, orig.rect().width() == dst.rect().width());
665 REPORTER_ASSERT(reporter, orig.rect().height() == dst.rect().height());
666 REPORTER_ASSERT(reporter, orig.rect().top() == -dst.rect().bottom());
667 REPORTER_ASSERT(reporter, orig.rect().right() == -dst.rect().left());
677 REPORTER_ASSERT(reporter, success);
680 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(dst.radii((SkRRect::Corner) i).fX,
682 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(dst.radii((SkRRect::Corner) i).fY,
685 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(dst.rect().width(),
687 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(dst.rect().height(),
689 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(dst.rect().left(),
691 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(dst.rect().top(),
703 REPORTER_ASSERT(reporter, success);
707 REPORTER_ASSERT(reporter, dstUL.x() == origLL.y());
708 REPORTER_ASSERT(reporter, dstUL.y() == origLL.x());
709 REPORTER_ASSERT(reporter, dstUR.x() == origUL.y());
710 REPORTER_ASSERT(reporter, dstUR.y() == origUL.x());
711 REPORTER_ASSERT(reporter, dstLR.x() == origUR.y());
712 REPORTER_ASSERT(reporter, dstLR.y() == origUR.x());
713 REPORTER_ASSERT(reporter, dstLL.x() == origLR.y());
714 REPORTER_ASSERT(reporter, dstLL.y() == origLR.x());
717 REPORTER_ASSERT(reporter, orig.rect().width() == dst.rect().height());
718 REPORTER_ASSERT(reporter, orig.rect().height() == dst.rect().width());
729 REPORTER_ASSERT(reporter, success);
732 REPORTER_ASSERT(reporter, dstUL.x() == origLR.y());
733 REPORTER_ASSERT(reporter, dstUL.y() == origLR.x());
734 REPORTER_ASSERT(reporter, dstUR.x() == origUR.y());
735 REPORTER_ASSERT(reporter, dstUR.y() == origUR.x());
736 REPORTER_ASSERT(reporter, dstLR.x() == origUL.y());
737 REPORTER_ASSERT(reporter, dstLR.y() == origUL.x());
738 REPORTER_ASSERT(reporter, dstLL.x() == origLL.y());
739 REPORTER_ASSERT(reporter, dstLL.y() == origLL.x());
742 REPORTER_ASSERT(reporter, orig.rect().width() == dst.rect().height());
743 REPORTER_ASSERT(reporter, orig.rect().height() == dst.rect().width());
757 REPORTER_ASSERT(reporter, success);
758 REPORTER_ASSERT(reporter, dst == dst2);
769 REPORTER_ASSERT(reporter, success);
770 REPORTER_ASSERT(reporter, dst == dst2);
781 REPORTER_ASSERT(reporter, success);
782 REPORTER_ASSERT(reporter, dst == dst2);
793 REPORTER_ASSERT(reporter, success);
796 REPORTER_ASSERT(reporter, dstUL.x() == origUL.y());
797 REPORTER_ASSERT(reporter, dstUL.y() == origUL.x());
798 REPORTER_ASSERT(reporter, dstUR.x() == origLL.y());
799 REPORTER_ASSERT(reporter, dstUR.y() == origLL.x());
800 REPORTER_ASSERT(reporter, dstLR.x() == origLR.y());
801 REPORTER_ASSERT(reporter, dstLR.y() == origLR.x());
802 REPORTER_ASSERT(reporter, dstLL.x() == origUR.y());
803 REPORTER_ASSERT(reporter, dstLL.y() == origUR.x());
806 REPORTER_ASSERT(reporter, orig.rect().width() == dst.rect().height());
807 REPORTER_ASSERT(reporter, orig.rect().height() == dst.rect().width());
819 REPORTER_ASSERT(reporter, success);
820 REPORTER_ASSERT(reporter, dst == dst2);
831 REPORTER_ASSERT(reporter, success);
832 REPORTER_ASSERT(reporter, dst == dst2);
843 REPORTER_ASSERT(reporter, success);
844 REPORTER_ASSERT(reporter, dst == dst2);
858 REPORTER_ASSERT(reporter, success);
862 REPORTER_ASSERT(reporter, dstUL.x() == origUR.y());
863 REPORTER_ASSERT(reporter, dstUL.y() == origUR.x());
864 REPORTER_ASSERT(reporter, dstUR.x() == origLR.y());
865 REPORTER_ASSERT(reporter, dstUR.y() == origLR.x());
866 REPORTER_ASSERT(reporter, dstLR.x() == origLL.y());
867 REPORTER_ASSERT(reporter, dstLR.y() == origLL.x());
868 REPORTER_ASSERT(reporter, dstLL.x() == origUL.y());
869 REPORTER_ASSERT(reporter, dstLL.y() == origUL.x());
872 REPORTER_ASSERT(reporter, orig.rect().width() == dst.rect().height());
873 REPORTER_ASSERT(reporter, orig.rect().height() == dst.rect().width());
884 REPORTER_ASSERT(reporter, success);
885 REPORTER_ASSERT(reporter, dst == dst2);
898 REPORTER_ASSERT(reporter, success);
904 REPORTER_ASSERT(reporter, dst == dst2);
908 static void test_round_rect_transform(skiatest::Reporter* reporter) {
913 test_transform_helper(reporter, rrect);
923 test_transform_helper(reporter, rrect);
931 static void test_issue_2696(skiatest::Reporter* reporter) {
943 REPORTER_ASSERT(reporter, success);
949 REPORTER_ASSERT(reporter,
951 REPORTER_ASSERT(reporter,
956 void test_read_rrect(skiatest::Reporter* reporter, const SkRRect& rrect, bool shouldEqualSrc) {
963 REPORTER_ASSERT(reporter, size == SkRRect::kSizeInMemory);
964 REPORTER_ASSERT(reporter, deserialized.isValid());
966 REPORTER_ASSERT(reporter, rrect == deserialized);
970 static void test_read(skiatest::Reporter* reporter) {
976 test_read_rrect(reporter, SkRRect::MakeEmpty(), true);
977 test_read_rrect(reporter, SkRRect::MakeRect(kRect), true);
979 test_read_rrect(reporter, SkRRect::MakeRect(kInfRect), true);
980 test_read_rrect(reporter, SkRRect::MakeRect(kNaNRect), true);
986 test_read_rrect(reporter, rrect, false);
988 test_read_rrect(reporter, rrect, false);
990 test_read_rrect(reporter, SkRRect::MakeOval(kRect), true);
991 test_read_rrect(reporter, SkRRect::MakeOval(kInfRect), true);
992 test_read_rrect(reporter, SkRRect::MakeOval(kNaNRect), true);
995 test_read_rrect(reporter, rrect, false);
997 test_read_rrect(reporter, rrect, false);
999 test_read_rrect(reporter, SkRRect::MakeRectXY(kRect, 5.f, 5.f), true);
1001 test_read_rrect(reporter, SkRRect::MakeRectXY(kRect, 5.f, 400.f), true);
1005 test_read_rrect(reporter, rrect, true);
1009 test_read_rrect(reporter, rrect, false);
1011 test_read_rrect(reporter, rrect, false);
1013 test_read_rrect(reporter, rrect, false);
1015 test_read_rrect(reporter, rrect, false);
1018 static void test_inner_bounds(skiatest::Reporter* reporter) {
1025 REPORTER_ASSERT(reporter, SkRRectPriv::InnerBounds(SkRRect::MakeEmpty()).isEmpty());
1028 REPORTER_ASSERT(reporter, SkRRectPriv::InnerBounds(SkRRect::MakeRect(r)) == r);
1033 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(inner.width() * inner.height(),
1047 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(inner.width() * inner.height(),
1052 REPORTER_ASSERT(reporter, SkRRectPriv::InnerBounds(rr) ==
1056 REPORTER_ASSERT(reporter, SkRRectPriv::InnerBounds(rr) ==
1085 REPORTER_ASSERT(reporter, outer.contains(maxInner));
1086 REPORTER_ASSERT(reporter, rr.contains(maxInner));
1093 REPORTER_ASSERT(reporter, maxInner.contains(inner));
1098 REPORTER_ASSERT(reporter, maxInner.contains(midX, maxTop));
1099 REPORTER_ASSERT(reporter, maxInner.contains(midX, maxTop + innerHeight));
1100 REPORTER_ASSERT(reporter, maxInner.contains(maxLeft, midY));
1101 REPORTER_ASSERT(reporter, maxInner.contains(maxLeft + innerWidth, midY));
1114 static void verify_success(skiatest::Reporter* reporter, const SkRRect& a, const SkRRect& b,
1134 REPORTER_ASSERT(reporter, actual == SkRRectPriv::ConservativeIntersect(b, a));
1137 REPORTER_ASSERT(reporter, actual == SkRRectPriv::ConservativeIntersect(actual, a));
1138 REPORTER_ASSERT(reporter, actual == SkRRectPriv::ConservativeIntersect(actual, b));
1141 REPORTER_ASSERT(reporter, actual.rect() == expectedBounds);
1157 REPORTER_ASSERT(reporter, empty.isEmpty());
1160 static void verify_failure(skiatest::Reporter* reporter, const SkRRect& a, const SkRRect& b) {
1164 REPORTER_ASSERT(reporter, intersection.isEmpty());
1165 REPORTER_ASSERT(reporter, SkRRectPriv::ConservativeIntersect(b, a).isEmpty());
1169 static void test_conservative_intersection(skiatest::Reporter* reporter) {
1193 verify_success(reporter, a, b, kRect, kRect, kRect, kRect);
1195 verify_success(reporter, a.makeOffset(6.f, 0.f), b, kA, kRect, kRect, kA);
1196 verify_success(reporter, a.makeOffset(-6.f, 0.f), b, kRect, kA, kA, kRect);
1198 verify_success(reporter, a, b.makeOffset(0.f, 6.f), kB, kB, kRect, kRect);
1199 verify_success(reporter, a, b.makeOffset(0.f, -6.f), kRect, kRect, kB, kB);
1201 verify_success(reporter, a.makeOffset(-7.f, -8.f), b, kB, kRect, kA, kRect); // TL of B
1202 verify_success(reporter, a.makeOffset(7.f, -8.f), b, kRect, kB, kRect, kA); // TR of B
1203 verify_success(reporter, a.makeOffset(7.f, 8.f), b, kA, kRect, kB, kRect); // BR of B
1204 verify_success(reporter, a.makeOffset(-7.f, 8.f), b, kRect, kA, kRect, kB); // BL of B
1207 verify_success(reporter, a, make_inset(a, 1.f, 1.f), kB, kB, kB, kB);
1208 verify_success(reporter, make_inset(b, 2.f, 2.f), b, kA, kA, kA, kA);
1214 verify_success(reporter, c, cT, kA, kA, kRect, kRect);
1215 verify_success(reporter, cT, c, kB, kB, kRect, kRect);
1217 verify_success(reporter, c, cB, kRect, kRect, kA, kA);
1218 verify_success(reporter, cB, c, kRect, kRect, kB, kB);
1220 verify_success(reporter, c, cL, kA, kRect, kRect, kA);
1221 verify_success(reporter, cL, c, kB, kRect, kRect, kB);
1223 verify_success(reporter, c, cR, kRect, kA, kA, kRect);
1224 verify_success(reporter, cR, c, kRect, kB, kB, kRect);
1229 verify_failure(reporter, a.makeOffset(32.f, 0.f), b);
1231 verify_failure(reporter, a.makeOffset(11.5f, -11.5f), b);
1233 verify_failure(reporter, SkRRect::MakeEmpty(), b);
1236 verify_failure(reporter, make_inset(b, 0.3f, 0.3f), b);
1238 verify_failure(reporter, a.makeOffset(2.5f, 0.f), b);
1239 verify_failure(reporter, a.makeOffset(-2.5f, 0.f), b);
1241 verify_failure(reporter, a, b.makeOffset(0.f, 1.5f));
1242 verify_failure(reporter, a, b.makeOffset(0.f, -1.5f));
1244 verify_failure(reporter, a.makeOffset(5.f, -2.f), b);
1245 verify_failure(reporter, a.makeOffset(-5.f, -2.f), b);
1246 verify_failure(reporter, a.makeOffset(5.f, 2.f), b);
1247 verify_failure(reporter, a.makeOffset(-5.f, 2.f), b);
1249 verify_failure(reporter, a, b.makeOffset(3.f, -5.f));
1250 verify_failure(reporter, a, b.makeOffset(-3.f, -5.f));
1251 verify_failure(reporter, a, b.makeOffset(3.f, 5.f));
1252 verify_failure(reporter, a, b.makeOffset(-3.f, 5.f));
1254 verify_failure(reporter, a.makeOffset(8.f, 10.f), b);
1255 verify_failure(reporter, a.makeOffset(-8.f, 10.f), b);
1256 verify_failure(reporter, a.makeOffset(8.f, -10.f), b);
1257 verify_failure(reporter, a.makeOffset(-8.f, -10.f), b);
1266 verify_failure(reporter, a, a.makeOffset(r, 0.f));
1269 DEF_TEST(RoundRect, reporter) {
1270 test_round_rect_basic(reporter);
1271 test_round_rect_rects(reporter);
1272 test_round_rect_ovals(reporter);
1273 test_round_rect_general(reporter);
1274 test_round_rect_iffy_parameters(reporter);
1275 test_inset(reporter);
1276 test_round_rect_contains_rect(reporter);
1277 test_round_rect_transform(reporter);
1278 test_issue_2696(reporter);
1279 test_tricky_radii(reporter);
1280 test_empty_crbug_458524(reporter);
1281 test_empty(reporter);
1282 test_read(reporter);
1283 test_inner_bounds(reporter);
1284 test_conservative_intersection(reporter);