Lines Matching refs:boxes
480 …std::vector<TextBox> boxes = paragraph->getRectsForRange(0, 0, rect_height_style, rect_width_style… in DEF_TEST() local
481 canvas.drawRects(SK_ColorRED, boxes); in DEF_TEST()
482 REPORTER_ASSERT(reporter, boxes.size() == 0ull); in DEF_TEST()
484 boxes = paragraph->getRectsForRange(0, 40, rect_height_style, rect_width_style); in DEF_TEST()
485 canvas.drawRects(SK_ColorBLUE, boxes); in DEF_TEST()
486 REPORTER_ASSERT(reporter, boxes.size() == 3ull); in DEF_TEST()
488 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[1].rect.left(), 0, EPSILON100)); in DEF_TEST()
489 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[1].rect.top(), 92.805f, EPSILON5)); in DEF_TEST()
490 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[1].rect.right(), 43.843f, EPSILON100)); in DEF_TEST()
491 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[1].rect.bottom(), 165.495f, EPSILON5)); in DEF_TEST()
799 auto boxes = paragraph->getRectsForRange(0, 100, rect_height_style, rect_width_style); in DEF_TEST() local
800 canvas.drawRects(SK_ColorRED, boxes); in DEF_TEST()
889 auto boxes = paragraph->getRectsForRange(0, 100, rect_height_style, rect_width_style); in DEF_TEST() local
890 canvas.drawRects(SK_ColorRED, boxes); in DEF_TEST()
891 REPORTER_ASSERT(reporter, boxes.size() == 3); // DIFF in DEF_TEST()
893 boxes = paragraph->getRectsForRange(240, 250, rect_height_style, rect_width_style); in DEF_TEST()
894 canvas.drawRects(SK_ColorBLUE, boxes); in DEF_TEST()
895 REPORTER_ASSERT(reporter, boxes.size() == 1); in DEF_TEST()
897 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.left(), 588, EPSILON100)); in DEF_TEST()
898 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.top(), 130, EPSILON100)); in DEF_TEST()
899 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.right(), 640, EPSILON100)); in DEF_TEST()
900 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.bottom(), 156, EPSILON100)); in DEF_TEST()
1206 …std::vector<TextBox> boxes = paragraph->getRectsForRange(0, 100, rect_height_style, rect_width_sty… in DEF_TEST() local
1207 canvas.drawRects(SK_ColorRED, boxes); in DEF_TEST()
1209 REPORTER_ASSERT(reporter, boxes.size() == 1ull); in DEF_TEST()
1211 …REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.left(), 538.548f, EPSILON100)); // DI… in DEF_TEST()
1212 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.top(), -0.268f, EPSILON100)); in DEF_TEST()
1213 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.right(), 900, EPSILON100)); in DEF_TEST()
1214 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.bottom(), 44, EPSILON100)); in DEF_TEST()
1253 …std::vector<TextBox> boxes = paragraph->getRectsForRange(36, 40, rect_height_style, rect_width_sty… in DEF_TEST() local
1254 canvas.drawRects(SK_ColorRED, boxes); in DEF_TEST()
1256 REPORTER_ASSERT(reporter, boxes.size() == 2ull); // DIFF: 1 in DEF_TEST()
1257 …REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.left(), 83.916f, EPSILON100)); // DIF… in DEF_TEST()
1258 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.top(), -0.268f, EPSILON100)); in DEF_TEST()
1259 …REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.right(), 110.155f, EPSILON100)); // DI… in DEF_TEST()
1260 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.bottom(), 44, EPSILON100)); in DEF_TEST()
1262 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[1].rect.left(), 422.414f, EPSILON100)); in DEF_TEST()
1263 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[1].rect.top(), -0.268f, EPSILON100)); in DEF_TEST()
1264 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[1].rect.right(), 428.152f, EPSILON100)); in DEF_TEST()
1265 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[1].rect.bottom(), 44, EPSILON100)); in DEF_TEST()
1304 std::vector<TextBox> boxes = in DEF_TEST() local
1306 canvas.drawRects(SK_ColorRED, boxes); in DEF_TEST()
1308 REPORTER_ASSERT(reporter, boxes.size() == 2ull); in DEF_TEST()
1309 …REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.left(), 561.501f, EPSILON100)); … in DEF_TEST()
1310 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.top(), -0.268f, EPSILON100)); in DEF_TEST()
1311 …REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.right(), 587.741f, EPSILON100)); … in DEF_TEST()
1312 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.bottom(), 44, EPSILON100)); in DEF_TEST()
1314 …REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[1].rect.left(), 900, EPSILON100)); … in DEF_TEST()
1315 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[1].rect.top(), -0.268f, EPSILON100)); in DEF_TEST()
1316 …REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[1].rect.right(), 905.738f, EPSILON100)); … in DEF_TEST()
1317 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[1].rect.bottom(), 44, EPSILON100)); in DEF_TEST()
2346 auto boxes = paragraph->getRectsForRange(5, 6, RectHeightStyle::kMax, RectWidthStyle::kTight); in DEF_TEST() local
2347 canvas.drawLines(SK_ColorRED, boxes); in DEF_TEST()
2350 boxes = paragraph->getRectsForRange(6, 7, RectHeightStyle::kMax, RectWidthStyle::kTight); in DEF_TEST()
2351 canvas.drawLines(SK_ColorRED, boxes); in DEF_TEST()
2354 boxes = paragraph->getRectsForRange(7, 8, RectHeightStyle::kMax, RectWidthStyle::kTight); in DEF_TEST()
2355 canvas.drawLines(SK_ColorRED, boxes); in DEF_TEST()
2366 boxes = paragraph->getRectsForRange(12, 13, RectHeightStyle::kMax, RectWidthStyle::kTight); in DEF_TEST()
2367 canvas.drawLines(SK_ColorRED, boxes); in DEF_TEST()
2368 boxes = paragraph->getRectsForRange(13, 14, RectHeightStyle::kMax, RectWidthStyle::kTight); in DEF_TEST()
2369 canvas.drawLines(SK_ColorRED, boxes); in DEF_TEST()
2370 boxes = paragraph->getRectsForRange(18, 19, RectHeightStyle::kMax, RectWidthStyle::kTight); in DEF_TEST()
2371 canvas.drawLines(SK_ColorRED, boxes); in DEF_TEST()
2372 boxes = paragraph->getRectsForRange(19, 20, RectHeightStyle::kMax, RectWidthStyle::kTight); in DEF_TEST()
2373 canvas.drawLines(SK_ColorRED, boxes); in DEF_TEST()
2374 boxes = paragraph->getRectsForRange(24, 25, RectHeightStyle::kMax, RectWidthStyle::kTight); in DEF_TEST()
2375 canvas.drawLines(SK_ColorRED, boxes); in DEF_TEST()
2376 boxes = paragraph->getRectsForRange(25, 26, RectHeightStyle::kMax, RectWidthStyle::kTight); in DEF_TEST()
2377 canvas.drawLines(SK_ColorRED, boxes); in DEF_TEST()
2378 boxes = paragraph->getRectsForRange(30, 31, RectHeightStyle::kMax, RectWidthStyle::kTight); in DEF_TEST()
2379 canvas.drawLines(SK_ColorRED, boxes); in DEF_TEST()
2380 boxes = paragraph->getRectsForRange(31, 32, RectHeightStyle::kMax, RectWidthStyle::kTight); in DEF_TEST()
2381 canvas.drawLines(SK_ColorRED, boxes); in DEF_TEST()
3135 auto boxes = paragraph->getRectsForRange(0, 0, rect_height_style, rect_width_style); in DEF_TEST() local
3136 REPORTER_ASSERT(reporter, boxes.empty()); in DEF_TEST()
3139 auto boxes = paragraph->getRectsForRange(0, 1, rect_height_style, rect_width_style); in DEF_TEST() local
3140 canvas.drawRects(SK_ColorRED, boxes); in DEF_TEST()
3141 REPORTER_ASSERT(reporter, boxes.size() == 1); in DEF_TEST()
3142 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.left(), 0, EPSILON100)); in DEF_TEST()
3143 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.top(), 34.5f, EPSILON100)); in DEF_TEST()
3144 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.right(), 50, EPSILON100)); in DEF_TEST()
3145 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.bottom(), 84.5f, EPSILON100)); in DEF_TEST()
3148 auto boxes = paragraph->getRectsForRange(0, 1, rect_height_max_style, rect_width_style); in DEF_TEST() local
3149 canvas.drawRects(SK_ColorRED, boxes); in DEF_TEST()
3150 REPORTER_ASSERT(reporter, boxes.size() == 1); in DEF_TEST()
3151 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.left(), 0, EPSILON100)); in DEF_TEST()
3152 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.top(), 34.5f, EPSILON100)); in DEF_TEST()
3153 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.right(), 50, EPSILON100)); in DEF_TEST()
3154 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.bottom(), 95, EPSILON100)); in DEF_TEST()
3157 auto boxes = paragraph->getRectsForRange(6, 10, rect_height_style, rect_width_style); in DEF_TEST() local
3158 canvas.drawRects(SK_ColorRED, boxes); in DEF_TEST()
3159 REPORTER_ASSERT(reporter, boxes.size() == 1); in DEF_TEST()
3160 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.left(), 300, EPSILON100)); in DEF_TEST()
3161 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.top(), 34.5f, EPSILON100)); in DEF_TEST()
3162 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.right(), 500, EPSILON100)); in DEF_TEST()
3163 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.bottom(), 84.5f, EPSILON100)); in DEF_TEST()
3166 auto boxes = paragraph->getRectsForRange(6, 10, rect_height_max_style, rect_width_style); in DEF_TEST() local
3167 canvas.drawRects(SK_ColorRED, boxes); in DEF_TEST()
3168 REPORTER_ASSERT(reporter, boxes.size() == 1); in DEF_TEST()
3169 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.left(), 300, EPSILON100)); in DEF_TEST()
3170 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.top(), 34.5f, EPSILON100)); in DEF_TEST()
3171 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.right(), 500, EPSILON100)); in DEF_TEST()
3172 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.bottom(), 95, EPSILON100)); in DEF_TEST()
3175 auto boxes = paragraph->getRectsForRange(14, 16, rect_height_max_style, rect_width_style); in DEF_TEST() local
3176 canvas.drawRects(SK_ColorRED, boxes); in DEF_TEST()
3177 REPORTER_ASSERT(reporter, boxes.size() == 1); in DEF_TEST()
3178 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.left(), 0, EPSILON100)); in DEF_TEST()
3179 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.top(), 224.5f, EPSILON100)); in DEF_TEST()
3180 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.right(), 100, EPSILON100)); in DEF_TEST()
3181 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.bottom(), 285, EPSILON100)); in DEF_TEST()
3184 auto boxes = paragraph->getRectsForRange(20, 25, rect_height_max_style, rect_width_style); in DEF_TEST() local
3185 canvas.drawRects(SK_ColorRED, boxes); in DEF_TEST()
3186 REPORTER_ASSERT(reporter, boxes.size() == 1); in DEF_TEST()
3187 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.left(), 50, EPSILON100)); in DEF_TEST()
3188 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.top(), 319.5f, EPSILON100)); in DEF_TEST()
3189 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.right(), 300, EPSILON100)); in DEF_TEST()
3190 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.bottom(), 380, EPSILON100)); in DEF_TEST()
3241 auto boxes = paragraph->getRectsForRange(0, 0, rect_height_style, rect_width_style); in DEF_TEST() local
3242 REPORTER_ASSERT(reporter, boxes.empty()); in DEF_TEST()
3245 auto boxes = paragraph->getRectsForRange(0, 1, rect_height_style, rect_width_style); in DEF_TEST() local
3246 canvas.drawRects(SK_ColorRED, boxes); in DEF_TEST()
3247 REPORTER_ASSERT(reporter, boxes.size() == 1); in DEF_TEST()
3248 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.left(), 0, EPSILON100)); in DEF_TEST()
3249 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.top(), 24, EPSILON100)); in DEF_TEST()
3250 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.right(), 50, EPSILON100)); in DEF_TEST()
3251 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.bottom(), 74, EPSILON100)); in DEF_TEST()
3254 auto boxes = paragraph->getRectsForRange(0, 1, rect_height_max_style, rect_width_style); in DEF_TEST() local
3255 canvas.drawRects(SK_ColorRED, boxes); in DEF_TEST()
3256 REPORTER_ASSERT(reporter, boxes.size() == 1); in DEF_TEST()
3257 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.left(), 0, EPSILON100)); in DEF_TEST()
3258 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.top(), 24, EPSILON100)); in DEF_TEST()
3259 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.right(), 50, EPSILON100)); in DEF_TEST()
3260 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.bottom(), 80, EPSILON100)); in DEF_TEST()
3263 auto boxes = paragraph->getRectsForRange(6, 10, rect_height_style, rect_width_style); in DEF_TEST() local
3264 canvas.drawRects(SK_ColorRED, boxes); in DEF_TEST()
3265 REPORTER_ASSERT(reporter, boxes.size() == 1); in DEF_TEST()
3266 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.left(), 300, EPSILON100)); in DEF_TEST()
3267 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.top(), 24, EPSILON100)); in DEF_TEST()
3268 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.right(), 500, EPSILON100)); in DEF_TEST()
3269 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.bottom(), 74, EPSILON100)); in DEF_TEST()
3272 auto boxes = paragraph->getRectsForRange(6, 10, rect_height_max_style, rect_width_style); in DEF_TEST() local
3273 canvas.drawRects(SK_ColorRED, boxes); in DEF_TEST()
3274 REPORTER_ASSERT(reporter, boxes.size() == 1); in DEF_TEST()
3275 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.left(), 300, EPSILON100)); in DEF_TEST()
3276 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.top(), 24, EPSILON100)); in DEF_TEST()
3277 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.right(), 500, EPSILON100)); in DEF_TEST()
3278 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.bottom(), 80, EPSILON100)); in DEF_TEST()
3281 auto boxes = paragraph->getRectsForRange(14, 16, rect_height_max_style, rect_width_style); in DEF_TEST() local
3282 canvas.drawRects(SK_ColorRED, boxes); in DEF_TEST()
3283 REPORTER_ASSERT(reporter, boxes.size() == 1); in DEF_TEST()
3284 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.left(), 0, EPSILON100)); in DEF_TEST()
3285 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.top(), 184, EPSILON100)); in DEF_TEST()
3286 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.right(), 100, EPSILON100)); in DEF_TEST()
3287 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.bottom(), 240, EPSILON100)); in DEF_TEST()
3290 auto boxes = paragraph->getRectsForRange(20, 25, rect_height_max_style, rect_width_style); in DEF_TEST() local
3291 canvas.drawRects(SK_ColorRED, boxes); in DEF_TEST()
3292 REPORTER_ASSERT(reporter, boxes.size() == 1); in DEF_TEST()
3293 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.left(), 50, EPSILON100)); in DEF_TEST()
3294 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.top(), 264, EPSILON100)); in DEF_TEST()
3295 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.right(), 300, EPSILON100)); in DEF_TEST()
3296 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.bottom(), 320, EPSILON100)); in DEF_TEST()
3348 auto boxes = paragraph->getRectsForRange(0, 0, rect_height_style, rect_width_style); in DEF_TEST() local
3349 REPORTER_ASSERT(reporter, boxes.empty()); in DEF_TEST()
3352 auto boxes = paragraph->getRectsForRange(0, 1, rect_height_style, rect_width_style); in DEF_TEST() local
3353 canvas.drawRects(SK_ColorRED, boxes); in DEF_TEST()
3354 REPORTER_ASSERT(reporter, boxes.size() == 1); in DEF_TEST()
3355 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.left(), 0, epsilon)); in DEF_TEST()
3356 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.top(), 8, epsilon)); in DEF_TEST()
3357 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.right(), 50, epsilon)); in DEF_TEST()
3358 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.bottom(), 58, epsilon)); in DEF_TEST()
3361 auto boxes = paragraph->getRectsForRange(0, 1, rect_height_max_style, rect_width_style); in DEF_TEST() local
3362 canvas.drawRects(SK_ColorRED, boxes); in DEF_TEST()
3363 REPORTER_ASSERT(reporter, boxes.size() == 1); in DEF_TEST()
3364 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.left(), 0, epsilon)); in DEF_TEST()
3365 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.top(), 8, epsilon)); in DEF_TEST()
3366 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.right(), 50, epsilon)); in DEF_TEST()
3367 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.bottom(), 60, epsilon)); in DEF_TEST()
3370 auto boxes = paragraph->getRectsForRange(6, 10, rect_height_style, rect_width_style); in DEF_TEST() local
3371 canvas.drawRects(SK_ColorRED, boxes); in DEF_TEST()
3372 REPORTER_ASSERT(reporter, boxes.size() == 1); in DEF_TEST()
3373 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.left(), 300, epsilon)); in DEF_TEST()
3374 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.top(), 8, epsilon)); in DEF_TEST()
3375 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.right(), 500, epsilon)); in DEF_TEST()
3376 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.bottom(), 58, epsilon)); in DEF_TEST()
3379 auto boxes = paragraph->getRectsForRange(6, 10, rect_height_max_style, rect_width_style); in DEF_TEST() local
3380 canvas.drawRects(SK_ColorRED, boxes); in DEF_TEST()
3381 REPORTER_ASSERT(reporter, boxes.size() == 1); in DEF_TEST()
3382 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.left(), 300, epsilon)); in DEF_TEST()
3383 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.top(), 8, epsilon)); in DEF_TEST()
3384 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.right(), 500, epsilon)); in DEF_TEST()
3385 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.bottom(), 60, epsilon)); in DEF_TEST()
3388 auto boxes = paragraph->getRectsForRange(14, 16, rect_height_max_style, rect_width_style); in DEF_TEST() local
3389 canvas.drawRects(SK_ColorRED, boxes); in DEF_TEST()
3390 REPORTER_ASSERT(reporter, boxes.size() == 1); in DEF_TEST()
3391 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.left(), 0, epsilon)); in DEF_TEST()
3392 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.top(), 128, epsilon)); in DEF_TEST()
3393 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.right(), 100, epsilon)); in DEF_TEST()
3394 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.bottom(), 180, epsilon)); in DEF_TEST()
3397 auto boxes = paragraph->getRectsForRange(20, 25, rect_height_max_style, rect_width_style); in DEF_TEST() local
3398 canvas.drawRects(SK_ColorRED, boxes); in DEF_TEST()
3399 REPORTER_ASSERT(reporter, boxes.size() == 1); in DEF_TEST()
3400 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.left(), 50, epsilon)); in DEF_TEST()
3401 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.top(), 188, epsilon)); in DEF_TEST()
3402 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.right(), 300, epsilon)); in DEF_TEST()
3403 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.bottom(), 240, epsilon)); in DEF_TEST()
3545 auto boxes = paragraph->getRectsForRange(0, 0, rect_height_style, rect_width_style); in DEF_TEST() local
3546 REPORTER_ASSERT(reporter, boxes.empty()); in DEF_TEST()
3549 auto boxes = paragraph->getRectsForRange(0, 1, rect_height_style, rect_width_style); in DEF_TEST() local
3550 canvas.drawRects(SK_ColorRED, boxes); in DEF_TEST()
3551 REPORTER_ASSERT(reporter, boxes.size() == 1); in DEF_TEST()
3552 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.left(), 0, EPSILON100)); in DEF_TEST()
3553 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.top(), 26.5f, EPSILON100)); in DEF_TEST()
3554 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.right(), 20, EPSILON100)); in DEF_TEST()
3555 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.bottom(), 46.5f, EPSILON100)); in DEF_TEST()
3558 auto boxes = paragraph->getRectsForRange(0, 2, rect_height_strut_style, rect_width_style); in DEF_TEST() local
3559 canvas.drawRects(SK_ColorRED, boxes); in DEF_TEST()
3560 REPORTER_ASSERT(reporter, boxes.size() == 1); in DEF_TEST()
3561 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.left(), 0, EPSILON100)); in DEF_TEST()
3562 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.top(), 2.5f, EPSILON100)); in DEF_TEST()
3563 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.right(), 40, EPSILON100)); in DEF_TEST()
3564 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.bottom(), 52.5f, EPSILON100)); in DEF_TEST()