Home | History | Annotate | Download | only in tests

Lines Matching refs:Reporter

133 static void test_rgn(skiatest::Reporter* reporter) {
138 REPORTER_ASSERT(reporter, equalsAAClip(rgn));
146 REPORTER_ASSERT(reporter, equalsAAClip(rgn));
154 REPORTER_ASSERT(reporter, equalsAAClip(rgn));
181 static void test_path_bounds(skiatest::Reporter* reporter) {
188 REPORTER_ASSERT(reporter, sheight == path.getBounds().height());
190 REPORTER_ASSERT(reporter, height == clip.getBounds().height());
202 REPORTER_ASSERT(reporter, sheight == path.getBounds().height());
204 REPORTER_ASSERT(reporter, teardrop_height == clip.getBounds().height());
207 static void test_empty(skiatest::Reporter* reporter) {
210 REPORTER_ASSERT(reporter, clip0.isEmpty());
211 REPORTER_ASSERT(reporter, clip0.getBounds().isEmpty());
212 REPORTER_ASSERT(reporter, clip1 == clip0);
215 REPORTER_ASSERT(reporter, clip0.isEmpty());
216 REPORTER_ASSERT(reporter, clip0.getBounds().isEmpty());
217 REPORTER_ASSERT(reporter, clip1 == clip0);
221 REPORTER_ASSERT(reporter, !clip0.isEmpty());
222 REPORTER_ASSERT(reporter, !clip0.getBounds().isEmpty());
223 REPORTER_ASSERT(reporter, clip0 != clip1);
224 REPORTER_ASSERT(reporter, clip0.getBounds() == r);
227 REPORTER_ASSERT(reporter, clip0.isEmpty());
228 REPORTER_ASSERT(reporter, clip0.getBounds().isEmpty());
229 REPORTER_ASSERT(reporter, clip1 == clip0);
233 REPORTER_ASSERT(reporter, nullptr == mask.fImage);
234 REPORTER_ASSERT(reporter, mask.fBounds.isEmpty());
245 static void test_irect(skiatest::Reporter* reporter) {
266 ERRORF(reporter, "%s %s "
284 REPORTER_ASSERT(reporter, maskBW == maskAA);
289 static void test_path_with_hole(skiatest::Reporter* reporter) {
318 REPORTER_ASSERT(reporter, expected == mask);
322 static void test_really_a_rect(skiatest::Reporter* reporter) {
332 REPORTER_ASSERT(reporter, clip.getBounds() == SkIRect::MakeWH(100, 100));
333 REPORTER_ASSERT(reporter, !clip.isRect());
341 REPORTER_ASSERT(reporter, clip.getBounds() == SkIRect::MakeLTRB(10, 0, 50, 90));
343 REPORTER_ASSERT(reporter, clip.isRect());
346 static void did_dx_affect(skiatest::Reporter* reporter, const SkScalar dx[],
365 REPORTER_ASSERT(reporter, changed != (rc0 == rc1));
366 REPORTER_ASSERT(reporter, changed != (rc0 == rc2));
370 static void test_nearly_integral(skiatest::Reporter* reporter) {
376 did_dx_affect(reporter, gSafeX, SK_ARRAY_COUNT(gSafeX), false);
381 did_dx_affect(reporter, gUnsafeX, SK_ARRAY_COUNT(gUnsafeX), true);
405 static void test_crbug_422693(skiatest::Reporter* reporter) {
412 DEF_TEST(AAClip, reporter) {
413 test_empty(reporter);
414 test_path_bounds(reporter);
415 test_irect(reporter);
416 test_rgn(reporter);
417 test_path_with_hole(reporter);
419 test_nearly_integral(reporter);
420 test_really_a_rect(reporter);
421 test_crbug_422693(reporter);