Lines Matching refs:Reporter
21 void check_text_node(skiatest::Reporter* reporter,
28 ERRORF(reporter, "root element not found.");
34 ERRORF(reporter, "<text> element not found.");
37 REPORTER_ASSERT(reporter, dom.getType(textElem) == SkDOM::kElement_Type);
40 REPORTER_ASSERT(reporter, textNode != nullptr);
42 REPORTER_ASSERT(reporter, dom.getType(textNode) == SkDOM::kText_Type);
43 REPORTER_ASSERT(reporter, strcmp(expected, dom.getName(textNode)) == 0);
49 REPORTER_ASSERT(reporter, x != nullptr);
52 REPORTER_ASSERT(reporter, SkParse::Count(x) == xposCount);
57 REPORTER_ASSERT(reporter, xpos[0] == offset.x());
60 REPORTER_ASSERT(reporter, xpos[i] == SkIntToScalar(expected[i]));
66 REPORTER_ASSERT(reporter, y != nullptr);
69 REPORTER_ASSERT(reporter, SkParse::Count(y) == yposCount);
74 REPORTER_ASSERT(reporter, ypos[0] == offset.y());
77 REPORTER_ASSERT(reporter, ypos[i] == -SkIntToScalar(expected[i]));
83 void test_whitespace_pos(skiatest::Reporter* reporter,
97 check_text_node(reporter, dom, dom.finishParsing(), offset, 0, expected);
109 check_text_node(reporter, dom, dom.finishParsing(), offset, 1, expected);
121 check_text_node(reporter, dom, dom.finishParsing(), offset, 2, expected);
126 DEF_TEST(SVGDevice_whitespace_pos, reporter) {
144 test_whitespace_pos(reporter, tests[i].tst_in, tests[i].tst_out);