Home | History | Annotate | Download | only in tests

Lines Matching full:reporter

15 static void test_font(skiatest::Reporter* reporter) {
19 REPORTER_ASSERT(reporter, NULL != font->getTypeface());
20 REPORTER_ASSERT(reporter, 24 == font->getSize());
21 REPORTER_ASSERT(reporter, 1 == font->getScaleX());
22 REPORTER_ASSERT(reporter, 0 == font->getSkewX());
23 REPORTER_ASSERT(reporter, SkFont::kA8_MaskType == font->getMaskType());
30 REPORTER_ASSERT(reporter, 5 == count);
32 REPORTER_ASSERT(reporter, 0 != glyphs[i]);
34 REPORTER_ASSERT(reporter, glyphs[0] != glyphs[1]); // 'h' != 'e'
35 REPORTER_ASSERT(reporter, glyphs[2] == glyphs[3]); // 'l' == 'l'
38 REPORTER_ASSERT(reporter, newFont.get());
39 REPORTER_ASSERT(reporter, font->getTypeface() == newFont->getTypeface());
40 REPORTER_ASSERT(reporter, 36 == newFont->getSize()); // double check we haven't changed
41 REPORTER_ASSERT(reporter, 24 == font->getSize()); // double check we haven't changed
46 REPORTER_ASSERT(reporter, font.get());
47 REPORTER_ASSERT(reporter, font->getSize() == paint.getTextSize());
48 REPORTER_ASSERT(reporter, SkFont::kBW_MaskType == font->getMaskType());
56 static void test_alias_names(skiatest::Reporter* reporter) {
76 REPORTER_ASSERT(reporter, first->uniqueID() == face->uniqueID());
81 static void test_fontiter(skiatest::Reporter* reporter, bool verbose) {
91 REPORTER_ASSERT(reporter, fnset->count() == set->count());
101 // REPORTER_ASSERT(reporter, sname.size() > 0);
104 // REPORTER_ASSERT(reporter, face.get());
116 DEF_TEST(FontMgr, reporter) {
117 test_fontiter(reporter, FLAGS_verboseFontMgr);
118 test_alias_names(reporter);
119 test_font(reporter);