Lines Matching refs:style

4  * Use of this source code is governed by a BSD-style license that can be
227 REPORTER_ASSERT(reporter, impl->styles().size() == 1); // paragraph style does not count
234 (TextRange textRange, const TextStyle& style, const TextLine::ClipContext& context) {
236 REPORTER_ASSERT(reporter, style.getColor() == SK_ColorBLACK);
1048 REPORTER_ASSERT(reporter, impl->styles().size() == 1); // paragraph style does not count
1054 [reporter, &index](TextRange textRange, const TextStyle& style, const TextLine::ClipContext& context) {
1056 REPORTER_ASSERT(reporter, style.getColor() == SK_ColorRED);
1063 // Checked: DIFF+ (Space between 1 & 2 style blocks)
1144 [&](TextRange textRange, const TextStyle& style, const TextLine::ClipContext& context) {
1147 REPORTER_ASSERT(reporter, style.equals(text_style1));
1151 REPORTER_ASSERT(reporter, style.equals(text_style2));
1155 REPORTER_ASSERT(reporter, style.equals(text_style3));
1159 REPORTER_ASSERT(reporter, style.equals(text_style4));
1171 [&](TextRange textRange, const TextStyle& style, const TextLine::ClipContext& context) {
1174 REPORTER_ASSERT(reporter, style.equals(text_style4));
1218 [&](TextRange textRange, const TextStyle& style, const TextLine::ClipContext& context) {
1219 REPORTER_ASSERT(reporter, style.equals(paragraph_style.getTextStyle()));
1264 [&](TextRange textRange, const TextStyle& style, const TextLine::ClipContext& context) {
1265 REPORTER_ASSERT(reporter, style.equals(text_style));
1300 REPORTER_ASSERT(reporter, impl->styles().size() == 1); // paragraph style does not count
1360 REPORTER_ASSERT(reporter, impl->styles().size() == 1); // paragraph style does not count
1430 REPORTER_ASSERT(reporter, impl->styles().size() == 2); // paragraph style does not count
1522 REPORTER_ASSERT(reporter, impl->styles().size() == 1); // paragraph style does not count
2210 [&](TextRange textRange, const TextStyle& style, const TextLine::ClipContext& context) {
2214 REPORTER_ASSERT(reporter, style.getDecorationType() == decoration);
2217 REPORTER_ASSERT(reporter, style.getDecorationStyle() ==
2219 REPORTER_ASSERT(reporter, style.getDecorationColor() == SK_ColorBLACK);
2221 style.getDecorationThicknessMultiplier() == 2.0);
2223 case 1: // The style appears on 2 lines so it has 2 pieces
2224 REPORTER_ASSERT(reporter, style.getDecorationStyle() ==
2226 REPORTER_ASSERT(reporter, style.getDecorationColor() == SK_ColorBLUE);
2228 style.getDecorationThicknessMultiplier() == 1.0);
2231 REPORTER_ASSERT(reporter, style.getDecorationStyle() ==
2233 REPORTER_ASSERT(reporter, style.getDecorationColor() == SK_ColorBLACK);
2235 style.getDecorationThicknessMultiplier() == 1.0);
2239 REPORTER_ASSERT(reporter, style.getDecorationStyle() ==
2241 REPORTER_ASSERT(reporter, style.getDecorationColor() == SK_ColorBLACK);
2243 style.getDecorationThicknessMultiplier() == 3.0);
2246 REPORTER_ASSERT(reporter, style.getDecorationStyle() ==
2248 REPORTER_ASSERT(reporter, style.getDecorationColor() == SK_ColorRED);
2250 style.getDecorationThicknessMultiplier() == 1.0);
2303 [&](TextRange textRange, const TextStyle& style, const TextLine::ClipContext& context) {
2308 style.getFontStyle().slant() == SkFontStyle::kUpright_Slant);
2312 style.getFontStyle().slant() == SkFontStyle::kItalic_Slant);
2317 style.getFontStyle().slant() == SkFontStyle::kUpright_Slant);
3723 [&](TextRange textRange, const TextStyle& style, const TextLine::ClipContext& context) {
3730 [&](TextRange textRange, const TextStyle& style, const TextLine::ClipContext& context) {
4151 [&](TextRange textRange, const TextStyle& style, const TextLine::ClipContext& context) {
4152 REPORTER_ASSERT(reporter, index == 0 && style.equals(text_style));
4202 [&](TextRange textRange, const TextStyle& style, const TextLine::ClipContext& context) {
4206 REPORTER_ASSERT(reporter, style.getShadowNumber() == 1);
4209 REPORTER_ASSERT(reporter, style.getShadowNumber() == 3);
4212 REPORTER_ASSERT(reporter, style.getShadowNumber() == 1);
4215 REPORTER_ASSERT(reporter, style.getShadowNumber() == 4);
4216 REPORTER_ASSERT(reporter, style.equals(text_style));
4219 REPORTER_ASSERT(reporter, style.getShadowNumber() == 1);
6796 REPORTER_ASSERT(reporter, impl->styles().size() == 1); // paragraph style does not count
6803 (TextRange textRange, const TextStyle& style, const TextLine::ClipContext& context) {
6805 REPORTER_ASSERT(reporter, style.getColor() == SK_ColorBLACK);
7121 // Google logo is shown in one style (the first one)
7135 TextStyle style;
7136 style.setFontFamilies({SkString("Google Sans")});
7137 style.setFontSize(30);
7139 TextStyle style0(style);
7143 TextStyle style1(style);
7148 paraStyle.setTextStyle(style);
7205 (TextRange textRange, const TextStyle& style, const TextLine::ClipContext& context) {
7662 (TextRange textRange, const TextStyle& style, const TextLine::ClipContext& context) {
7664 REPORTER_ASSERT(reporter, style.getColor() == SK_ColorBLACK);