Lines Matching refs:REPORTER_ASSERT

31         REPORTER_ASSERT(reporter, (double) rr.radii(SkRRect::kUpperRight_Corner).fY +  in test_tricky_radii()
47 REPORTER_ASSERT(reporter, SkRRect::kEmpty_Type == other.getType()); in test_empty_crbug_458524()
59 REPORTER_ASSERT(reporter, rr2.isRect()); in test_inset()
62 REPORTER_ASSERT(reporter, rr2.isRect()); in test_inset()
65 REPORTER_ASSERT(reporter, rr2.isEmpty()); in test_inset()
69 REPORTER_ASSERT(reporter, rr2.isSimple()); in test_inset()
71 REPORTER_ASSERT(reporter, rr2.isRect()); in test_inset()
82 REPORTER_ASSERT(reporter, SkRRect::kNinePatch_Type == rr.type()); in test_9patch_rrect()
83 REPORTER_ASSERT(reporter, rr.rect() == rect); in test_9patch_rrect()
91 REPORTER_ASSERT(reporter, rquad[i] == rr.radii((SkRRect::Corner) i)); in test_9patch_rrect()
97 REPORTER_ASSERT(reporter, rr2 == rr && rr2.getType() == rr.getType()); in test_9patch_rrect()
108 REPORTER_ASSERT(reporter, SkRRect::kEmpty_Type == empty.type()); in test_round_rect_basic()
109 REPORTER_ASSERT(reporter, empty.rect().isEmpty()); in test_round_rect_basic()
112 REPORTER_ASSERT(reporter, zeroPt == empty.radii((SkRRect::Corner) i)); in test_round_rect_basic()
121 REPORTER_ASSERT(reporter, SkRRect::kRect_Type == rr1.type()); in test_round_rect_basic()
122 REPORTER_ASSERT(reporter, rr1.rect() == rect); in test_round_rect_basic()
125 REPORTER_ASSERT(reporter, zeroPt == rr1.radii((SkRRect::Corner) i)); in test_round_rect_basic()
130 REPORTER_ASSERT(reporter, rr1_2 == rr1 && rr1_2.getType() == rr1.getType()); in test_round_rect_basic()
133 REPORTER_ASSERT(reporter, rr1_3 == rr1 && rr1_3.getType() == rr1.getType()); in test_round_rect_basic()
140 REPORTER_ASSERT(reporter, SkRRect::kOval_Type == rr2.type()); in test_round_rect_basic()
141 REPORTER_ASSERT(reporter, rr2.rect() == rect); in test_round_rect_basic()
144 REPORTER_ASSERT(reporter, in test_round_rect_basic()
151 REPORTER_ASSERT(reporter, rr2_2 == rr2 && rr2_2.getType() == rr2.getType()); in test_round_rect_basic()
154 REPORTER_ASSERT(reporter, rr2_3 == rr2 && rr2_3.getType() == rr2.getType()); in test_round_rect_basic()
161 REPORTER_ASSERT(reporter, SkRRect::kSimple_Type == rr3.type()); in test_round_rect_basic()
162 REPORTER_ASSERT(reporter, rr3.rect() == rect); in test_round_rect_basic()
165 REPORTER_ASSERT(reporter, p == rr3.radii((SkRRect::Corner) i)); in test_round_rect_basic()
170 REPORTER_ASSERT(reporter, rr3_2 == rr3 && rr3_2.getType() == rr3.getType()); in test_round_rect_basic()
173 REPORTER_ASSERT(reporter, rr3_3 == rr3 && rr3_3.getType() == rr3.getType()); in test_round_rect_basic()
194 REPORTER_ASSERT(reporter, SkRRect::kComplex_Type == rr5.type()); in test_round_rect_basic()
195 REPORTER_ASSERT(reporter, rr5.rect() == rect); in test_round_rect_basic()
198 REPORTER_ASSERT(reporter, radii2[i] == rr5.radii((SkRRect::Corner) i)); in test_round_rect_basic()
202 REPORTER_ASSERT(reporter, empty != rr3); in test_round_rect_basic()
203 REPORTER_ASSERT(reporter, rr3 != rr5); in test_round_rect_basic()
215 REPORTER_ASSERT(reporter, SkRRect::kEmpty_Type == empty.type()); in test_round_rect_rects()
217 REPORTER_ASSERT(reporter, 0 == r.fLeft && 0 == r.fTop && 0 == r.fRight && 0 == r.fBottom); in test_round_rect_rects()
224 REPORTER_ASSERT(reporter, SkRRect::kRect_Type == rr1.type()); in test_round_rect_rects()
226 REPORTER_ASSERT(reporter, rect == r); in test_round_rect_rects()
234 REPORTER_ASSERT(reporter, SkRRect::kRect_Type == rr2.type()); in test_round_rect_rects()
236 REPORTER_ASSERT(reporter, rect == r); in test_round_rect_rects()
243 REPORTER_ASSERT(reporter, SkRRect::kComplex_Type == rr3.type()); in test_round_rect_rects()
254 REPORTER_ASSERT(reporter, SkRRect::kOval_Type == rr1.type()); in test_round_rect_ovals()
256 REPORTER_ASSERT(reporter, oval == rect); in test_round_rect_ovals()
266 REPORTER_ASSERT(reporter, SkRRect::kSimple_Type == rr1.type()); in test_round_rect_general()
274 REPORTER_ASSERT(reporter, SkRRect::kComplex_Type == rr2.type()); in test_round_rect_general()
288 REPORTER_ASSERT(reporter, SkRRect::kComplex_Type == rr1.type()); in test_round_rect_iffy_parameters()
292 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(p.fX, 33.33333f)); in test_round_rect_iffy_parameters()
293 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(p.fY, 66.66666f)); in test_round_rect_iffy_parameters()
299 REPORTER_ASSERT(reporter, SkRRect::kRect_Type == rr2.type()); in test_round_rect_iffy_parameters()
303 REPORTER_ASSERT(reporter, 0.0f == p2.fX); in test_round_rect_iffy_parameters()
304 REPORTER_ASSERT(reporter, 0.0f == p2.fY); in test_round_rect_iffy_parameters()
319 REPORTER_ASSERT(reporter, contains[i] == rr.contains(test)); in test_direction()
357 REPORTER_ASSERT(reporter, !rrects[i].contains(easyOuts[j])); in test_round_rect_contains_rect()
453 REPORTER_ASSERT(reporter, !success); in assert_transform_failure()
455 REPORTER_ASSERT(reporter, copyOfDst == dst); in assert_transform_failure()
457 REPORTER_ASSERT(reporter, copyOfOrig == orig); in assert_transform_failure()
458 REPORTER_ASSERT(reporter, orig != dst); in assert_transform_failure()
478 REPORTER_ASSERT(reporter, success); in test_transform_helper()
479 REPORTER_ASSERT(reporter, orig == dst); in test_transform_helper()
514 REPORTER_ASSERT(reporter, success); in test_transform_helper()
516 REPORTER_ASSERT(reporter, in test_transform_helper()
519 REPORTER_ASSERT(reporter, orig.rect().width() == dst.rect().width()); in test_transform_helper()
520 REPORTER_ASSERT(reporter, orig.rect().height() == dst.rect().height()); in test_transform_helper()
521 REPORTER_ASSERT(reporter, dst.rect().left() == orig.rect().left() + translateX); in test_transform_helper()
522 REPORTER_ASSERT(reporter, dst.rect().top() == orig.rect().top() + translateY); in test_transform_helper()
533 REPORTER_ASSERT(reporter, success); in test_transform_helper()
537 REPORTER_ASSERT(reporter, origUL == dstUR); in test_transform_helper()
538 REPORTER_ASSERT(reporter, origUR == dstUL); in test_transform_helper()
539 REPORTER_ASSERT(reporter, origLR == dstLL); in test_transform_helper()
540 REPORTER_ASSERT(reporter, origLL == dstLR); in test_transform_helper()
543 REPORTER_ASSERT(reporter, orig.rect().width() == dst.rect().width()); in test_transform_helper()
544 REPORTER_ASSERT(reporter, orig.rect().height() == dst.rect().height()); in test_transform_helper()
546 REPORTER_ASSERT(reporter, orig.rect().right() == -dst.rect().left()); in test_transform_helper()
548 REPORTER_ASSERT(reporter, orig.rect().top() == dst.rect().top()); in test_transform_helper()
559 REPORTER_ASSERT(reporter, success); in test_transform_helper()
563 REPORTER_ASSERT(reporter, origUL == dstLL); in test_transform_helper()
564 REPORTER_ASSERT(reporter, origUR == dstLR); in test_transform_helper()
565 REPORTER_ASSERT(reporter, origLR == dstUR); in test_transform_helper()
566 REPORTER_ASSERT(reporter, origLL == dstUL); in test_transform_helper()
569 REPORTER_ASSERT(reporter, orig.rect().width() == dst.rect().width()); in test_transform_helper()
570 REPORTER_ASSERT(reporter, orig.rect().height() == dst.rect().height()); in test_transform_helper()
572 REPORTER_ASSERT(reporter, orig.rect().top() == -dst.rect().bottom()); in test_transform_helper()
574 REPORTER_ASSERT(reporter, orig.rect().left() == dst.rect().left()); in test_transform_helper()
582 REPORTER_ASSERT(reporter, success); in test_transform_helper()
585 REPORTER_ASSERT(reporter, origUL == dstLR); in test_transform_helper()
586 REPORTER_ASSERT(reporter, origUR == dstLL); in test_transform_helper()
587 REPORTER_ASSERT(reporter, origLR == dstUL); in test_transform_helper()
588 REPORTER_ASSERT(reporter, origLL == dstUR); in test_transform_helper()
591 REPORTER_ASSERT(reporter, orig.rect().width() == dst.rect().width()); in test_transform_helper()
592 REPORTER_ASSERT(reporter, orig.rect().height() == dst.rect().height()); in test_transform_helper()
593 REPORTER_ASSERT(reporter, orig.rect().top() == -dst.rect().bottom()); in test_transform_helper()
594 REPORTER_ASSERT(reporter, orig.rect().right() == -dst.rect().left()); in test_transform_helper()
604 REPORTER_ASSERT(reporter, success); in test_transform_helper()
607 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(dst.radii((SkRRect::Corner) i).fX, in test_transform_helper()
609 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(dst.radii((SkRRect::Corner) i).fY, in test_transform_helper()
612 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(dst.rect().width(), in test_transform_helper()
614 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(dst.rect().height(), in test_transform_helper()
616 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(dst.rect().left(), in test_transform_helper()
618 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(dst.rect().top(), in test_transform_helper()
657 REPORTER_ASSERT(reporter, success); in test_issue_2696()
663 REPORTER_ASSERT(reporter, in test_issue_2696()
665 REPORTER_ASSERT(reporter, in test_issue_2696()