Lines Matching +full:is +full:- +full:test +full:- +full:matrix +full:- +full:empty
4 * Use of this source code is governed by a BSD-style license that can be
19 #include "tests/Test.h"
58 SkMatrix matrix; in test_empty_crbug_458524() local
59 matrix.setScale(0, 1); in test_empty_crbug_458524()
60 rr.transform(matrix, &other); in test_empty_crbug_458524()
64 // Test that all the SkRRect entry points correctly handle un-sorted and
65 // zero-sized input rects
74 { 100, 100, 100, 200 }, // empty horizontal in test_empty()
75 { 100, 100, 200, 100 }, // empty vertical in test_empty()
76 { 100, 100, 100, 100 }, // empty both in test_empty()
77 { 0, 0, 0, 0 } // setEmpty-empty in test_empty()
142 rr.inset(-20, -20, &rr2); in test_inset()
170 // This test doesn't hold if the radii will be rescaled by SkRRect in test_9patch_rrect()
184 // Test out the basic API entry points
186 // Test out initialization methods in test_round_rect_basic()
188 SkRRect empty; in test_round_rect_basic() local
190 empty.setEmpty(); in test_round_rect_basic()
192 REPORTER_ASSERT(reporter, SkRRect::kEmpty_Type == empty.type()); in test_round_rect_basic()
193 REPORTER_ASSERT(reporter, empty.rect().isEmpty()); in test_round_rect_basic()
196 REPORTER_ASSERT(reporter, zeroPt == empty.radii((SkRRect::Corner) i)); in test_round_rect_basic()
199 //---- in test_round_rect_basic()
219 //---- in test_round_rect_basic()
241 //---- in test_round_rect_basic()
260 //---- in test_round_rect_basic()
264 // Test out the rrect from skia:3466 in test_round_rect_basic()
273 //---- in test_round_rect_basic()
286 // Test out == & != in test_round_rect_basic()
287 REPORTER_ASSERT(reporter, empty != rr3); in test_round_rect_basic()
291 // Test out the cases when the RR degenerates to a rect
295 //---- in test_round_rect_rects()
296 SkRRect empty; in test_round_rect_rects() local
298 empty.setEmpty(); in test_round_rect_rects()
300 REPORTER_ASSERT(reporter, SkRRect::kEmpty_Type == empty.type()); in test_round_rect_rects()
301 r = empty.rect(); in test_round_rect_rects()
304 //---- in test_round_rect_rects()
313 //---- in test_round_rect_rects()
323 //---- in test_round_rect_rects()
331 // Test out the cases when the RR degenerates to an oval
333 //---- in test_round_rect_ovals()
344 // Test out the non-degenerate RR cases
346 //---- in test_round_rect_general()
353 //---- in test_round_rect_general()
362 // Test out questionable-parameter handling
382 rr2.setRectXY(rect, -10, -20); in test_round_rect_iffy_parameters()
399 SkRect test = SkRect::MakeXYWH(x, y, in test_direction() local
402 test.sort(); in test_direction()
404 REPORTER_ASSERT(reporter, contains[i] == rr.contains(test)); in test_direction()
427 // First test easy outs - boxes that are obviously out on in test_round_rect_contains_rect()
430 { -5, -5, 5, 5 }, // NW in test_round_rect_contains_rect()
431 { 15, -5, 20, 5 }, // N in test_round_rect_contains_rect()
432 { 35, -5, 45, 5 }, // NE in test_round_rect_contains_rect()
436 { -5, 35, 5, 45 }, // SW in test_round_rect_contains_rect()
437 { -5, 15, 5, 20 } // W in test_round_rect_contains_rect()
446 // Now test non-trivial containment. For each compass in test_round_rect_contains_rect()
451 // all the test rects are inside the degenerate rrect in test_round_rect_contains_rect()
492 // for the complex case the answer is different for each direction in test_round_rect_contains_rect()
517 test_direction(reporter, rrects[i], 40, -1, 0, 1, kNumSteps, answers[i][2]); // NE in test_round_rect_contains_rect()
518 test_direction(reporter, rrects[i], 40, -1, 19.5f, 0, kNumSteps, answers[i][3]); // E in test_round_rect_contains_rect()
519 test_direction(reporter, rrects[i], 40, -1, 40, -1, kNumSteps, answers[i][4]); // SE in test_round_rect_contains_rect()
520 test_direction(reporter, rrects[i], 19.5f, 0, 40, -1, kNumSteps, answers[i][5]); // S in test_round_rect_contains_rect()
521 test_direction(reporter, rrects[i], 0, 1, 40, -1, kNumSteps, answers[i][6]); // SW in test_round_rect_contains_rect()
526 // Called for a matrix that should cause SkRRect::transform to fail.
528 const SkMatrix& matrix) { in assert_transform_failure() argument
529 // The test depends on the fact that the original is not empty. in assert_transform_failure()
536 bool success = orig.transform(matrix, &dst); in assert_transform_failure()
556 // Called to test various transforms on a single SkRRect.
561 // The identity matrix will duplicate the rrect. in test_transform_helper()
567 SkMatrix matrix; in test_transform_helper() local
568 matrix.reset(); in test_transform_helper()
569 matrix.setSkewX(SkIntToScalar(2)); in test_transform_helper()
570 assert_transform_failure(reporter, orig, matrix); in test_transform_helper()
572 matrix.reset(); in test_transform_helper()
573 matrix.setSkewY(SkIntToScalar(3)); in test_transform_helper()
574 assert_transform_failure(reporter, orig, matrix); in test_transform_helper()
576 matrix.reset(); in test_transform_helper()
577 matrix.setPerspX(4); in test_transform_helper()
578 assert_transform_failure(reporter, orig, matrix); in test_transform_helper()
580 matrix.reset(); in test_transform_helper()
581 matrix.setPerspY(5); in test_transform_helper()
582 assert_transform_failure(reporter, orig, matrix); in test_transform_helper()
585 matrix.reset(); in test_transform_helper()
586 matrix.setRotate(SkIntToScalar(37)); in test_transform_helper()
587 assert_transform_failure(reporter, orig, matrix); in test_transform_helper()
590 matrix.reset(); in test_transform_helper()
593 matrix.setTranslateX(translateX); in test_transform_helper()
594 matrix.setTranslateY(translateY); in test_transform_helper()
596 success = orig.transform(matrix, &dst); in test_transform_helper()
608 matrix.setSkewY(SkIntToScalar(7)); in test_transform_helper()
609 assert_transform_failure(reporter, orig, matrix); in test_transform_helper()
611 // Scaling in -x will flip the round rect horizontally. in test_transform_helper()
612 matrix.reset(); in test_transform_helper()
613 matrix.setScaleX(SkIntToScalar(-1)); in test_transform_helper()
615 success = orig.transform(matrix, &dst); in test_transform_helper()
629 REPORTER_ASSERT(reporter, orig.rect().right() == -dst.rect().left()); in test_transform_helper()
634 matrix.setPerspX(7); in test_transform_helper()
635 assert_transform_failure(reporter, orig, matrix); in test_transform_helper()
637 // Test out possible floating point issues w/ the radii transform in test_transform_helper()
638 matrix = SkMatrix::Scale(0.999999f, 0.999999f); in test_transform_helper()
640 success = orig.transform(matrix, &dst); in test_transform_helper()
643 // Scaling in -y will flip the round rect vertically. in test_transform_helper()
644 matrix.reset(); in test_transform_helper()
645 matrix.setScaleY(SkIntToScalar(-1)); in test_transform_helper()
647 success = orig.transform(matrix, &dst); in test_transform_helper()
661 REPORTER_ASSERT(reporter, orig.rect().top() == -dst.rect().bottom()); in test_transform_helper()
665 // Scaling in -x and -y will swap in both directions. in test_transform_helper()
666 matrix.reset(); in test_transform_helper()
667 matrix.setScaleY(SkIntToScalar(-1)); in test_transform_helper()
668 matrix.setScaleX(SkIntToScalar(-1)); in test_transform_helper()
670 success = orig.transform(matrix, &dst); in test_transform_helper()
682 REPORTER_ASSERT(reporter, orig.rect().top() == -dst.rect().bottom()); in test_transform_helper()
683 REPORTER_ASSERT(reporter, orig.rect().right() == -dst.rect().left()); in test_transform_helper()
688 matrix.reset(); in test_transform_helper()
689 matrix.setScaleX(xScale); in test_transform_helper()
690 matrix.setScaleY(yScale); in test_transform_helper()
692 success = orig.transform(matrix, &dst); in test_transform_helper()
711 // a-----b d-----a in test_transform_helper()
712 // | | -> | | in test_transform_helper()
714 // d-----c c-----b in test_transform_helper()
715 matrix.reset(); in test_transform_helper()
716 matrix.setRotate(SkIntToScalar(90)); in test_transform_helper()
718 success = orig.transform(matrix, &dst); in test_transform_helper()
736 // a-----b d-----a a-----d in test_transform_helper()
737 // | | -> | | -> | | in test_transform_helper()
739 // d-----c c-----b b-----c in test_transform_helper()
740 matrix.reset(); in test_transform_helper()
741 matrix.setRotate(SkIntToScalar(90)); in test_transform_helper()
742 matrix.postScale(SkIntToScalar(-1), SkIntToScalar(1)); in test_transform_helper()
744 success = orig.transform(matrix, &dst); in test_transform_helper()
761 // a-----b d-----c a-----d in test_transform_helper()
762 // | | -> | | -> | | in test_transform_helper()
764 // d-----c a-----b b-----c in test_transform_helper()
766 // This is the same as Rotate 90 and Flip X. in test_transform_helper()
767 matrix.reset(); in test_transform_helper()
768 matrix.setScale(SkIntToScalar(1), SkIntToScalar(-1)); in test_transform_helper()
769 matrix.postRotate(SkIntToScalar(90)); in test_transform_helper()
772 success = orig.transform(matrix, &dst2); in test_transform_helper()
776 // a-----b b-----a a-----d in test_transform_helper()
777 // | | -> | | -> | | in test_transform_helper()
779 // d-----c c-----d b-----c in test_transform_helper()
780 matrix.reset(); in test_transform_helper()
781 matrix.setScale(SkIntToScalar(-1), SkIntToScalar(1)); in test_transform_helper()
782 matrix.postRotate(SkIntToScalar(270)); in test_transform_helper()
784 success = orig.transform(matrix, &dst2); in test_transform_helper()
788 // a-----b b-----c a-----d in test_transform_helper()
789 // | | -> | | -> | | in test_transform_helper()
791 // d-----c a-----d b-----c in test_transform_helper()
792 matrix.reset(); in test_transform_helper()
793 matrix.setRotate(SkIntToScalar(270)); in test_transform_helper()
794 matrix.postScale(SkIntToScalar(1), SkIntToScalar(-1)); in test_transform_helper()
796 success = orig.transform(matrix, &dst2); in test_transform_helper()
800 // a-----b b-----a c-----b in test_transform_helper()
801 // | | -> | | -> | | in test_transform_helper()
803 // d-----c c-----d d-----a in test_transform_helper()
804 matrix.reset(); in test_transform_helper()
805 matrix.setScale(SkIntToScalar(-1), SkIntToScalar(1)); in test_transform_helper()
806 matrix.postRotate(SkIntToScalar(90)); in test_transform_helper()
808 success = orig.transform(matrix, &dst); in test_transform_helper()
825 // a-----b d-----a c-----b in test_transform_helper()
826 // | | -> | | -> | | in test_transform_helper()
828 // d-----c c-----b d-----a in test_transform_helper()
829 // This is the same as flip X and rotate 90 in test_transform_helper()
830 matrix.reset(); in test_transform_helper()
831 matrix.setRotate(SkIntToScalar(90)); in test_transform_helper()
832 matrix.postScale(SkIntToScalar(1), SkIntToScalar(-1)); in test_transform_helper()
834 success = orig.transform(matrix, &dst2); in test_transform_helper()
838 // a-----b b-----c c-----b in test_transform_helper()
839 // | | -> | | -> | | in test_transform_helper()
841 // d-----c a-----d d-----a in test_transform_helper()
842 matrix.reset(); in test_transform_helper()
843 matrix.setRotate(SkIntToScalar(270)); in test_transform_helper()
844 matrix.postScale(SkIntToScalar(-1), SkIntToScalar(1)); in test_transform_helper()
846 success = orig.transform(matrix, &dst2); in test_transform_helper()
850 // a-----b d-----c c-----b in test_transform_helper()
851 // | | -> | | -> | | in test_transform_helper()
853 // d-----c a-----b d-----a in test_transform_helper()
854 matrix.reset(); in test_transform_helper()
855 matrix.setScale(SkIntToScalar(1), SkIntToScalar(-1)); in test_transform_helper()
856 matrix.postRotate(SkIntToScalar(270)); in test_transform_helper()
858 success = orig.transform(matrix, &dst2); in test_transform_helper()
862 // a-----b d-----a b-----c in test_transform_helper()
863 // | | -> | | -> | | in test_transform_helper()
865 // d-----c c-----b a-----d in test_transform_helper()
866 // This is the same as rotation by 270. in test_transform_helper()
867 matrix.reset(); in test_transform_helper()
868 matrix.setRotate(SkIntToScalar(90)); in test_transform_helper()
869 matrix.postScale(SkIntToScalar(-1), SkIntToScalar(-1)); in test_transform_helper()
871 success = orig.transform(matrix, &dst); in test_transform_helper()
889 // a-----b b-----c in test_transform_helper()
890 // | | -> | | in test_transform_helper()
892 // d-----c a-----d in test_transform_helper()
895 matrix.reset(); in test_transform_helper()
896 matrix.setRotate(SkIntToScalar(270)); in test_transform_helper()
897 success = orig.transform(matrix, &dst2); in test_transform_helper()
901 // a-----b b-----c d-----a in test_transform_helper()
902 // | | -> | | -> | | in test_transform_helper()
904 // d-----c a-----d c-----b in test_transform_helper()
905 // This is the same as rotation by 90 degrees. in test_transform_helper()
906 matrix.reset(); in test_transform_helper()
907 matrix.setRotate(SkIntToScalar(270)); in test_transform_helper()
908 matrix.postScale(SkIntToScalar(-1), SkIntToScalar(-1)); in test_transform_helper()
910 success = orig.transform(matrix, &dst); in test_transform_helper()
913 matrix.reset(); in test_transform_helper()
914 matrix.setRotate(SkIntToScalar(90)); in test_transform_helper()
916 success = orig.transform(matrix, &dst2); in test_transform_helper()
919 // Non-uniorm scale factor and +/-90 degree rotation must scale the dst X or Y radii in test_transform_helper()
922 // ------------- in test_transform_helper()
924 // a----b a------b d--a in test_transform_helper()
925 // | | -> | | -> | | in test_transform_helper()
926 // | | Scale Y, d------c Rotate 90 | | in test_transform_helper()
927 // d----c Scale X | | in test_transform_helper()
928 // c--b in test_transform_helper()
931 matrix.reset(); in test_transform_helper()
932 matrix.setRotate(SkIntToScalar(90)); in test_transform_helper()
933 matrix.preScale(xScale, yScale); in test_transform_helper()
935 success = orig.transform(matrix, &dst); in test_transform_helper()
942 // Radii have counter clock-wise and swapped their x and y axis. The dst x radii should be in test_transform_helper()
957 // a----b b------a c--b in test_transform_helper()
958 // | | -> | | -> | | in test_transform_helper()
959 // | | Scale Y, c------d Rotate 90 | | in test_transform_helper()
960 // d----c Flip+Scale X | | in test_transform_helper()
961 // d--a in test_transform_helper()
963 xScale = -1.5f; in test_transform_helper()
964 matrix.reset(); in test_transform_helper()
965 matrix.setRotate(SkIntToScalar(90)); in test_transform_helper()
966 matrix.preScale(xScale, yScale); in test_transform_helper()
968 success = orig.transform(matrix, &dst); in test_transform_helper()
988 // a----b d------c a--d in test_transform_helper()
989 // | | -> | | -> | | in test_transform_helper()
990 // | | Flip+Scale Y, a------b Rotate 90 | | in test_transform_helper()
991 // d----c Scale X | | in test_transform_helper()
992 // b--c in test_transform_helper()
993 yScale = -0.5f; in test_transform_helper()
995 matrix.reset(); in test_transform_helper()
996 matrix.setRotate(SkIntToScalar(90)); in test_transform_helper()
997 matrix.preScale(xScale, yScale); in test_transform_helper()
999 success = orig.transform(matrix, &dst); in test_transform_helper()
1019 // a----b c------d b--c in test_transform_helper()
1020 // | | -> | | -> | | in test_transform_helper()
1021 // | | Flip+Scale Y, b------a Rotate 90 | | in test_transform_helper()
1022 // d----c Flip+Scale X | | in test_transform_helper()
1023 // a--d in test_transform_helper()
1024 yScale = -0.5f; in test_transform_helper()
1025 xScale = -1.5f; in test_transform_helper()
1026 matrix.reset(); in test_transform_helper()
1027 matrix.setRotate(SkIntToScalar(90)); in test_transform_helper()
1028 matrix.preScale(xScale, yScale); in test_transform_helper()
1030 success = orig.transform(matrix, &dst); in test_transform_helper()
1037 // With double-flip the corners rotate 90 degrees counter clockwise although the scale in test_transform_helper()
1053 // ------------- in test_transform_helper()
1054 // a----b a------b b--c in test_transform_helper()
1055 // | | -> | | -> | | in test_transform_helper()
1056 // | | Scale Y, d------c Rotate 270 | | in test_transform_helper()
1057 // d----c Scale X | | in test_transform_helper()
1058 // a--d in test_transform_helper()
1061 matrix.reset(); in test_transform_helper()
1062 matrix.setRotate(SkIntToScalar(270)); in test_transform_helper()
1063 matrix.preScale(xScale, yScale); in test_transform_helper()
1065 success = orig.transform(matrix, &dst); in test_transform_helper()
1072 // Radii have cycled counter clock-wise and swapped their x and y axis. The dst x radii in test_transform_helper()
1087 // a----b b------a a--d in test_transform_helper()
1088 // | | -> | | -> | | in test_transform_helper()
1089 // | | Scale Y, c------d Rotate 270 | | in test_transform_helper()
1090 // d----c Flip+Scale X | | in test_transform_helper()
1091 // b--c in test_transform_helper()
1093 xScale = -1.5f; in test_transform_helper()
1094 matrix.reset(); in test_transform_helper()
1095 matrix.setRotate(SkIntToScalar(270)); in test_transform_helper()
1096 matrix.preScale(xScale, yScale); in test_transform_helper()
1098 success = orig.transform(matrix, &dst); in test_transform_helper()
1118 // a----b d------c c--b in test_transform_helper()
1119 // | | -> | | -> | | in test_transform_helper()
1120 // | | Flip+Scale Y, a------b Rotate 270 | | in test_transform_helper()
1121 // d----c Scale X | | in test_transform_helper()
1122 // d--a in test_transform_helper()
1123 yScale = -0.5f; in test_transform_helper()
1125 matrix.reset(); in test_transform_helper()
1126 matrix.setRotate(SkIntToScalar(270)); in test_transform_helper()
1127 matrix.preScale(xScale, yScale); in test_transform_helper()
1129 success = orig.transform(matrix, &dst); in test_transform_helper()
1149 // a----b c------d d--a in test_transform_helper()
1150 // | | -> | | -> | | in test_transform_helper()
1151 // | | Flip+Scale Y, b------a Rotate 270 | | in test_transform_helper()
1152 // d----c Flip+Scale X | | in test_transform_helper()
1153 // c--b in test_transform_helper()
1154 yScale = -0.5f; in test_transform_helper()
1155 xScale = -1.5f; in test_transform_helper()
1156 matrix.reset(); in test_transform_helper()
1157 matrix.setRotate(SkIntToScalar(270)); in test_transform_helper()
1158 matrix.preScale(xScale, yScale); in test_transform_helper()
1160 success = orig.transform(matrix, &dst); in test_transform_helper()
1167 // With double-flip the corners rotate 90 degrees clockwise although the scale factors in test_transform_helper()
1211 // Test out the case where an oval already off in space is translated/scaled
1212 // further off into space - yielding numerical issues when the rect & radii
1222 0.0f, 2.44f, -438.7f, in test_issue_2696()
1242 // that the rrect is valid and our caller may have fiddled with the internals of rrect to make in test_read_rrect()
1262 // These get coerced to empty. in test_read()
1298 *innerRadius = -10.f; in test_read()
1308 // Test that an empty rrect reports empty inner bounds in test_inner_bounds()
1310 // Test that a rect rrect reports itself as the inner bounds in test_inner_bounds()
1313 // Test that a circle rrect has an inner bounds area equal to 2*radius^2 in test_inner_bounds()
1323 // Test that a rrect with circular corners has an area equal to: in test_inner_bounds()
1326 (width-2.f*radius) * (height-2.f*radius) + // inner area excluding corners and edges in test_inner_bounds()
1327 SK_ScalarSqrt2 * radius * (width-2.f*radius) + // two horiz. rects between corners in test_inner_bounds()
1328 SK_ScalarSqrt2 * radius * (height-2.f*radius); // two vert. rects between corners in test_inner_bounds()
1334 // Test that a rrect with a small y radius but large x radius selects the horizontal interior in test_inner_bounds()
1337 SkRect::MakeLTRB(0.f, 0.1f * radius, width, height - 0.1f * radius)); in test_inner_bounds()
1341 SkRect::MakeLTRB(0.1f * radius, 0.f, width - 0.1f * radius, height)); in test_inner_bounds()
1343 // Test a variety of complex round rects produce a non-empty rect that is at least contained, in test_inner_bounds()
1368 // Test upper limit on the size of 'maxInner' in test_inner_bounds()
1372 // Test lower limit on the size of 'maxInner' in test_inner_bounds()
1379 // Flipped from the inset, just test two points of inner in test_inner_bounds()
1391 // Helper to test expected intersection, relying on the fact that all round rect intersections
1427 // Use PathOps to confirm that the explicit round rect is correct. in verify_success()
1434 // path ops that is a rounded rectangle will return false. However, if test XOR expected is in verify_success()
1435 // empty, then we know that the shapes were the same. in verify_success()
1439 SkPath empty; in verify_success() local
1440 SkAssertResult(Op(testPath, expectedPath, kXOR_SkPathOp, &empty)); in verify_success()
1441 REPORTER_ASSERT(reporter, empty.isEmpty()); in verify_success()
1446 // Expected the intersection to fail (no intersection or complex intersection is not in verify_failure()
1461 // A is a wide, short round rect in test_conservative_intersection()
1463 // B is a narrow, tall round rect in test_conservative_intersection()
1466 // There is a 2 px buffer between the corner curves of A and the vertical edges of B, and in test_conservative_intersection()
1468 // form a symmetric rounded cross, we can easily test edge and corner combinations by simply in test_conservative_intersection()
1472 // - for clarity these are formed by moving A around to intersect with B in different ways. in test_conservative_intersection()
1473 // - the expected bounds of the round rect intersection is calculated automatically in test_conservative_intersection()
1480 verify_success(reporter, a.makeOffset(-6.f, 0.f), b, kRect, kA, kA, kRect); in test_conservative_intersection()
1483 verify_success(reporter, a, b.makeOffset(0.f, -6.f), kRect, kRect, kB, kB); in test_conservative_intersection()
1485 verify_success(reporter, a.makeOffset(-7.f, -8.f), b, kB, kRect, kA, kRect); // TL of B in test_conservative_intersection()
1486 verify_success(reporter, a.makeOffset(7.f, -8.f), b, kRect, kB, kRect, kA); // TR of B in test_conservative_intersection()
1488 verify_success(reporter, a.makeOffset(-7.f, 8.f), b, kRect, kA, kRect, kB); // BL of B in test_conservative_intersection()
1489 // An inset is contained inside the original (note that SkRRect::inset modifies radii too) so in test_conservative_intersection()
1490 // is returned unmodified when intersected. in test_conservative_intersection()
1514 // A and B's bounds intersect, but corner curves do not -> no intersection in test_conservative_intersection()
1515 verify_failure(reporter, a.makeOffset(11.5f, -11.5f), b); in test_conservative_intersection()
1516 // A is empty -> no intersection in test_conservative_intersection()
1518 // A is contained in B, but is too close to the corner curves for the conservative in test_conservative_intersection()
1523 verify_failure(reporter, a.makeOffset(-2.5f, 0.f), b); in test_conservative_intersection()
1526 verify_failure(reporter, a, b.makeOffset(0.f, -1.5f)); in test_conservative_intersection()
1528 verify_failure(reporter, a.makeOffset(5.f, -2.f), b); in test_conservative_intersection()
1529 verify_failure(reporter, a.makeOffset(-5.f, -2.f), b); in test_conservative_intersection()
1531 verify_failure(reporter, a.makeOffset(-5.f, 2.f), b); in test_conservative_intersection()
1533 verify_failure(reporter, a, b.makeOffset(3.f, -5.f)); in test_conservative_intersection()
1534 verify_failure(reporter, a, b.makeOffset(-3.f, -5.f)); in test_conservative_intersection()
1536 verify_failure(reporter, a, b.makeOffset(-3.f, 5.f)); in test_conservative_intersection()
1539 verify_failure(reporter, a.makeOffset(-8.f, 10.f), b); in test_conservative_intersection()
1540 verify_failure(reporter, a.makeOffset(8.f, -10.f), b); in test_conservative_intersection()
1541 verify_failure(reporter, a.makeOffset(-8.f, -10.f), b); in test_conservative_intersection()
1543 // Another variant of corners overlapping, this is two circles of radius r that overlap by r in test_conservative_intersection()
1545 // The key difference with the above case is that the intersection of the circle bounds have in test_conservative_intersection()
1546 // corners that are contained in both circles, but because it is only r wide, can not satisfy in test_conservative_intersection()