• Home
  • Raw
  • Download

Lines Matching refs:boxes

298     auto boxes = paragraph->getRectsForRange(0, 3, rect_height_style, rect_width_style);  in UNIX_ONLY_TEST()  local
299 canvas.drawRects(SK_ColorRED, boxes); in UNIX_ONLY_TEST()
300 REPORTER_ASSERT(reporter, boxes.size() == 1); in UNIX_ONLY_TEST()
302 boxes = paragraph->getRectsForRange(0, 3, rect_height_style, rect_width_style); in UNIX_ONLY_TEST()
303 canvas.drawRects(SK_ColorGREEN, boxes); in UNIX_ONLY_TEST()
304 REPORTER_ASSERT(reporter, boxes.size() == 1); in UNIX_ONLY_TEST()
306 boxes = paragraph->getRectsForPlaceholders(); in UNIX_ONLY_TEST()
307 canvas.drawRects(SK_ColorRED, boxes); in UNIX_ONLY_TEST()
309 boxes = paragraph->getRectsForRange(4, 17, rect_height_style, rect_width_style); in UNIX_ONLY_TEST()
310 canvas.drawRects(SK_ColorBLUE, boxes); in UNIX_ONLY_TEST()
312 REPORTER_ASSERT(reporter, boxes.size() == 7); in UNIX_ONLY_TEST()
314 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[1].rect.left(), 90.921f, EPSILON2)); in UNIX_ONLY_TEST()
315 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[1].rect.top(), 50, EPSILON100)); in UNIX_ONLY_TEST()
316 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[1].rect.right(), 90.921f + 50, EPSILON2)); in UNIX_ONLY_TEST()
317 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[1].rect.bottom(), 100, EPSILON100)); in UNIX_ONLY_TEST()
319 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[3].rect.left(), 231.343f, EPSILON2)); in UNIX_ONLY_TEST()
320 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[3].rect.top(), 50, EPSILON100)); in UNIX_ONLY_TEST()
321 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[3].rect.right(), 231.343f + 50, EPSILON2)); in UNIX_ONLY_TEST()
322 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[3].rect.bottom(), 100, EPSILON100)); in UNIX_ONLY_TEST()
324 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[4].rect.left(), 281.343f, EPSILON2)); in UNIX_ONLY_TEST()
325 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[4].rect.top(), 0, EPSILON100)); in UNIX_ONLY_TEST()
326 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[4].rect.right(), 281.343f + 5, EPSILON2)); in UNIX_ONLY_TEST()
327 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[4].rect.bottom(), 50, EPSILON100)); in UNIX_ONLY_TEST()
329 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[6].rect.left(), 336.343f, EPSILON2)); in UNIX_ONLY_TEST()
330 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[6].rect.top(), 0, EPSILON100)); in UNIX_ONLY_TEST()
331 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[6].rect.right(), 336.343f + 5, EPSILON2)); in UNIX_ONLY_TEST()
332 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[6].rect.bottom(), 50, EPSILON100)); in UNIX_ONLY_TEST()
369 auto boxes = paragraph->getRectsForPlaceholders(); in UNIX_ONLY_TEST() local
370 canvas.drawRects(SK_ColorRED, boxes); in UNIX_ONLY_TEST()
372 REPORTER_ASSERT(reporter, boxes.size() == 1); in UNIX_ONLY_TEST()
373 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.left(), 90.921f, EPSILON2)); in UNIX_ONLY_TEST()
374 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.top(), 0, EPSILON100)); in UNIX_ONLY_TEST()
375 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.right(), 90.921f + 55, EPSILON2)); in UNIX_ONLY_TEST()
376 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.bottom(), 50, EPSILON100)); in UNIX_ONLY_TEST()
381 boxes = paragraph->getRectsForRange(5, 6, rect_height_style, rect_width_style); in UNIX_ONLY_TEST()
382 canvas.drawRects(SK_ColorBLUE, boxes); in UNIX_ONLY_TEST()
384 REPORTER_ASSERT(reporter, boxes.size() == 1); in UNIX_ONLY_TEST()
385 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.left(), 75.324f, EPSILON2)); in UNIX_ONLY_TEST()
386 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.top(), 14.226f, EPSILON100)); in UNIX_ONLY_TEST()
387 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.right(), 90.921f, EPSILON2)); in UNIX_ONLY_TEST()
388 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.bottom(), 44.694f, EPSILON100)); in UNIX_ONLY_TEST()
425 auto boxes = paragraph->getRectsForPlaceholders(); in UNIX_ONLY_TEST() local
426 canvas.drawRects(SK_ColorRED, boxes); in UNIX_ONLY_TEST()
428 REPORTER_ASSERT(reporter, boxes.size() == 1); in UNIX_ONLY_TEST()
429 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.left(), 90.921f, EPSILON2)); in UNIX_ONLY_TEST()
430 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.top(), -0.347f, EPSILON100)); in UNIX_ONLY_TEST()
431 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.right(), 90.921f + 55, EPSILON2)); in UNIX_ONLY_TEST()
432 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.bottom(), 49.652f, EPSILON100)); in UNIX_ONLY_TEST()
437 boxes = paragraph->getRectsForRange(5, 6, rect_height_style, rect_width_style); in UNIX_ONLY_TEST()
438 canvas.drawRects(SK_ColorBLUE, boxes); in UNIX_ONLY_TEST()
440 REPORTER_ASSERT(reporter, boxes.size() == 1); in UNIX_ONLY_TEST()
441 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.left(), 75.324f, EPSILON2)); in UNIX_ONLY_TEST()
442 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.top(), 25.531f, EPSILON100)); in UNIX_ONLY_TEST()
443 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.right(), 90.921f, EPSILON2)); in UNIX_ONLY_TEST()
444 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.bottom(), 56, EPSILON100)); in UNIX_ONLY_TEST()
481 auto boxes = paragraph->getRectsForPlaceholders(); in UNIX_ONLY_TEST() local
482 canvas.drawRects(SK_ColorRED, boxes); in UNIX_ONLY_TEST()
484 REPORTER_ASSERT(reporter, boxes.size() == 1); in UNIX_ONLY_TEST()
485 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.left(), 90.921f, EPSILON2)); in UNIX_ONLY_TEST()
486 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.top(), 24, EPSILON100)); in UNIX_ONLY_TEST()
487 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.right(), 90.921f + 55, EPSILON2)); in UNIX_ONLY_TEST()
488 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.bottom(), 74, EPSILON100)); in UNIX_ONLY_TEST()
493 boxes = paragraph->getRectsForRange(5, 6, rect_height_style, rect_width_style); in UNIX_ONLY_TEST()
494 canvas.drawRects(SK_ColorBLUE, boxes); in UNIX_ONLY_TEST()
496 REPORTER_ASSERT(reporter, boxes.size() == 1); in UNIX_ONLY_TEST()
497 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.left(), 75.324f, EPSILON2)); in UNIX_ONLY_TEST()
498 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.top(), -0.121f, EPSILON100)); in UNIX_ONLY_TEST()
499 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.right(), 90.921f, EPSILON2)); in UNIX_ONLY_TEST()
500 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.bottom(), 30.347f, EPSILON100)); in UNIX_ONLY_TEST()
540 auto boxes = paragraph->getRectsForPlaceholders(); in UNIX_ONLY_TEST() local
541 canvas.drawRects(SK_ColorRED, boxes); in UNIX_ONLY_TEST()
542 REPORTER_ASSERT(reporter, boxes.size() == 1); in UNIX_ONLY_TEST()
543 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.left(), 90.921f, EPSILON50)); in UNIX_ONLY_TEST()
544 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.top(), 0, EPSILON100)); in UNIX_ONLY_TEST()
545 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.right(), 90.921f + 55, EPSILON50)); in UNIX_ONLY_TEST()
546 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.bottom(), 50, EPSILON100)); in UNIX_ONLY_TEST()
548 boxes = paragraph->getRectsForRange(0, 1, rect_height_style, rect_width_style); in UNIX_ONLY_TEST()
549 canvas.drawRects(SK_ColorBLUE, boxes); in UNIX_ONLY_TEST()
550 REPORTER_ASSERT(reporter, boxes.size() == 1); in UNIX_ONLY_TEST()
551 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.left(), 0.5f, EPSILON50)); in UNIX_ONLY_TEST()
552 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.top(), 19.531f, EPSILON100)); in UNIX_ONLY_TEST()
553 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.right(), 16.097f, EPSILON50)); in UNIX_ONLY_TEST()
554 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.bottom(), 50, EPSILON100)); in UNIX_ONLY_TEST()
594 auto boxes = paragraph->getRectsForPlaceholders(); in UNIX_ONLY_TEST() local
595 canvas.drawRects(SK_ColorRED, boxes); in UNIX_ONLY_TEST()
596 REPORTER_ASSERT(reporter, boxes.size() == 1); in UNIX_ONLY_TEST()
597 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.left(), 90.921f, EPSILON50)); in UNIX_ONLY_TEST()
598 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.top(), 0, EPSILON100)); in UNIX_ONLY_TEST()
599 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.right(), 90.921f + 55, EPSILON50)); in UNIX_ONLY_TEST()
600 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.bottom(), 50, EPSILON100)); in UNIX_ONLY_TEST()
602 boxes = paragraph->getRectsForRange(0, 1, rect_height_style, rect_width_style); in UNIX_ONLY_TEST()
603 canvas.drawRects(SK_ColorBLUE, boxes); in UNIX_ONLY_TEST()
604 REPORTER_ASSERT(reporter, boxes.size() == 1); in UNIX_ONLY_TEST()
605 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.left(), 0.5f, EPSILON50)); in UNIX_ONLY_TEST()
606 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.top(), 0, EPSILON100)); in UNIX_ONLY_TEST()
607 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.right(), 16.097f, EPSILON50)); in UNIX_ONLY_TEST()
608 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.bottom(), 30.468f, EPSILON100)); in UNIX_ONLY_TEST()
648 auto boxes = paragraph->getRectsForPlaceholders(); in UNIX_ONLY_TEST() local
649 canvas.drawRects(SK_ColorRED, boxes); in UNIX_ONLY_TEST()
650 REPORTER_ASSERT(reporter, boxes.size() == 1); in UNIX_ONLY_TEST()
651 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.left(), 90.921f, EPSILON50)); in UNIX_ONLY_TEST()
652 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.top(), 0, EPSILON100)); in UNIX_ONLY_TEST()
653 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.right(), 90.921f + 55, EPSILON50)); in UNIX_ONLY_TEST()
654 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.bottom(), 50, EPSILON100)); in UNIX_ONLY_TEST()
656 boxes = paragraph->getRectsForRange(5, 6, rect_height_style, rect_width_style); in UNIX_ONLY_TEST()
657 canvas.drawRects(SK_ColorBLUE, boxes); in UNIX_ONLY_TEST()
658 REPORTER_ASSERT(reporter, boxes.size() == 1); in UNIX_ONLY_TEST()
659 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.left(), 75.324f, EPSILON50)); in UNIX_ONLY_TEST()
660 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.top(), 9.765f, EPSILON100)); in UNIX_ONLY_TEST()
661 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.right(), 90.921f, EPSILON50)); in UNIX_ONLY_TEST()
662 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.bottom(), 40.234f, EPSILON100)); in UNIX_ONLY_TEST()
701 auto boxes = paragraph->getRectsForPlaceholders(); in UNIX_ONLY_TEST() local
702 canvas.drawRects(SK_ColorRED, boxes); in UNIX_ONLY_TEST()
703 REPORTER_ASSERT(reporter, boxes.size() == 1); in UNIX_ONLY_TEST()
704 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.left(), 162.5f, EPSILON50)); in UNIX_ONLY_TEST()
705 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.top(), 0, EPSILON100)); in UNIX_ONLY_TEST()
706 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.right(), 162.5f + 55, EPSILON50)); in UNIX_ONLY_TEST()
707 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.bottom(), 50, EPSILON100)); in UNIX_ONLY_TEST()
709 boxes = paragraph->getRectsForRange(5, 6, rect_height_style, rect_width_style); in UNIX_ONLY_TEST()
710 canvas.drawRects(SK_ColorBLUE, boxes); in UNIX_ONLY_TEST()
711 REPORTER_ASSERT(reporter, boxes.size() == 1); in UNIX_ONLY_TEST()
712 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.left(), 135.5f, EPSILON50)); in UNIX_ONLY_TEST()
713 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.top(), 4.703f, EPSILON100)); in UNIX_ONLY_TEST()
714 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.right(), 162.5f, EPSILON50)); in UNIX_ONLY_TEST()
715 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.bottom(), 42.065f, EPSILON100)); in UNIX_ONLY_TEST()
819 auto boxes = paragraph->getRectsForRange(0, 3, rect_height_style, rect_width_style); in UNIX_ONLY_TEST() local
820 canvas.drawRects(SK_ColorRED, boxes); in UNIX_ONLY_TEST()
821 REPORTER_ASSERT(reporter, boxes.size() == 1); in UNIX_ONLY_TEST()
823 boxes = paragraph->getRectsForRange(175, 176, rect_height_style, rect_width_style); in UNIX_ONLY_TEST()
824 canvas.drawRects(SK_ColorGREEN, boxes); in UNIX_ONLY_TEST()
825 REPORTER_ASSERT(reporter, boxes.size() == 1); in UNIX_ONLY_TEST()
826 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.left(), 31.695f, EPSILON50)); in UNIX_ONLY_TEST()
827 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.top(), 218.531f, EPSILON100)); in UNIX_ONLY_TEST()
828 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.right(), 47.292f, EPSILON50)); in UNIX_ONLY_TEST()
829 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.bottom(), 249, EPSILON100)); in UNIX_ONLY_TEST()
831 boxes = paragraph->getRectsForPlaceholders(); in UNIX_ONLY_TEST()
832 canvas.drawRects(SK_ColorRED, boxes); in UNIX_ONLY_TEST()
834 boxes = paragraph->getRectsForRange(4, 45, rect_height_style, rect_width_style); in UNIX_ONLY_TEST()
835 canvas.drawRects(SK_ColorBLUE, boxes); in UNIX_ONLY_TEST()
836 REPORTER_ASSERT(reporter, boxes.size() == 30); in UNIX_ONLY_TEST()
837 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.left(), 59.726f, EPSILON50)); in UNIX_ONLY_TEST()
838 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.top(), 26.378f, EPSILON100)); in UNIX_ONLY_TEST()
839 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.right(), 90.921f, EPSILON50)); in UNIX_ONLY_TEST()
840 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.bottom(), 56.847f, EPSILON100)); in UNIX_ONLY_TEST()
842 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[11].rect.left(), 606.343f, EPSILON20)); in UNIX_ONLY_TEST()
843 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[11].rect.top(), 38, EPSILON100)); in UNIX_ONLY_TEST()
844 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[11].rect.right(), 631.343f, EPSILON20)); in UNIX_ONLY_TEST()
845 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[11].rect.bottom(), 63, EPSILON100)); in UNIX_ONLY_TEST()
847 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[17].rect.left(), 0.5f, EPSILON50)); in UNIX_ONLY_TEST()
848 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[17].rect.top(), 63.5f, EPSILON100)); in UNIX_ONLY_TEST()
849 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[17].rect.right(), 50.5f, EPSILON50)); in UNIX_ONLY_TEST()
850 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[17].rect.bottom(), 113.5f, EPSILON100)); in UNIX_ONLY_TEST()
942 auto boxes = paragraph->getRectsForPlaceholders(); in UNIX_ONLY_TEST() local
943 canvas.drawRects(SK_ColorRED, boxes); in UNIX_ONLY_TEST()
945 REPORTER_ASSERT(reporter, boxes.size() == 34); in UNIX_ONLY_TEST()
946 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.left(), 90.921f, EPSILON50)); in UNIX_ONLY_TEST()
947 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.top(), 0, EPSILON100)); in UNIX_ONLY_TEST()
948 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.right(), 140.921f, EPSILON50)); in UNIX_ONLY_TEST()
949 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.bottom(), 50, EPSILON100)); in UNIX_ONLY_TEST()
951 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[16].rect.left(), 800.921f, EPSILON20)); in UNIX_ONLY_TEST()
952 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[16].rect.top(), 0, EPSILON100)); in UNIX_ONLY_TEST()
953 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[16].rect.right(), 850.921f, EPSILON20)); in UNIX_ONLY_TEST()
954 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[16].rect.bottom(), 50, EPSILON100)); in UNIX_ONLY_TEST()
956 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[33].rect.left(), 503.382f, EPSILON10)); in UNIX_ONLY_TEST()
957 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[33].rect.top(), 160, EPSILON100)); in UNIX_ONLY_TEST()
958 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[33].rect.right(), 508.382f, EPSILON10)); in UNIX_ONLY_TEST()
959 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[33].rect.bottom(), 180, EPSILON100)); in UNIX_ONLY_TEST()
961 boxes = paragraph->getRectsForRange(30, 50, rect_height_style, rect_width_style); in UNIX_ONLY_TEST()
962 canvas.drawRects(SK_ColorBLUE, boxes); in UNIX_ONLY_TEST()
964 REPORTER_ASSERT(reporter, boxes.size() == 8); in UNIX_ONLY_TEST()
965 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.left(), 216.097f, EPSILON50)); in UNIX_ONLY_TEST()
966 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.top(), 60, EPSILON100)); in UNIX_ONLY_TEST()
967 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.right(), 290.921f, EPSILON50)); in UNIX_ONLY_TEST()
968 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.bottom(), 120, EPSILON100)); in UNIX_ONLY_TEST()
970 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[1].rect.left(), 290.921f, EPSILON20)); in UNIX_ONLY_TEST()
971 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[1].rect.top(), 60, EPSILON100)); in UNIX_ONLY_TEST()
972 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[1].rect.right(), 340.921f, EPSILON20)); in UNIX_ONLY_TEST()
973 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[1].rect.bottom(), 120, EPSILON100)); in UNIX_ONLY_TEST()
975 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[2].rect.left(), 340.921f, EPSILON50)); in UNIX_ONLY_TEST()
976 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[2].rect.top(), 60, EPSILON100)); in UNIX_ONLY_TEST()
977 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[2].rect.right(), 345.921f, EPSILON50)); in UNIX_ONLY_TEST()
978 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[2].rect.bottom(), 120, EPSILON100)); in UNIX_ONLY_TEST()
1269 …std::vector<TextBox> boxes = paragraph->getRectsForRange(0, 0, rect_height_style, rect_width_style… in UNIX_ONLY_TEST() local
1270 canvas.drawRects(SK_ColorRED, boxes); in UNIX_ONLY_TEST()
1271 REPORTER_ASSERT(reporter, boxes.size() == 0ull); in UNIX_ONLY_TEST()
1273 boxes = paragraph->getRectsForRange(0, 40, rect_height_style, rect_width_style); in UNIX_ONLY_TEST()
1274 canvas.drawRects(SK_ColorBLUE, boxes); in UNIX_ONLY_TEST()
1275 REPORTER_ASSERT(reporter, boxes.size() == 3ull); in UNIX_ONLY_TEST()
1277 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[1].rect.left(), 0, EPSILON100)); in UNIX_ONLY_TEST()
1278 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[1].rect.top(), 92.805f, EPSILON5)); in UNIX_ONLY_TEST()
1279 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[1].rect.right(), 43.843f, EPSILON100)); in UNIX_ONLY_TEST()
1280 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[1].rect.bottom(), 165.495f, EPSILON5)); in UNIX_ONLY_TEST()
1321 …std::vector<TextBox> boxes = paragraph->getRectsForRange(0, len, RectHeightStyle::kTight, rect_wid… in UNIX_ONLY_TEST() local
1324 canvas.drawRects(SK_ColorBLUE, boxes); in UNIX_ONLY_TEST()
1325 REPORTER_ASSERT(reporter, boxes.size() == 3ull); in UNIX_ONLY_TEST()
1326 REPORTER_ASSERT(reporter, lineBoxes.size() == boxes.size()); in UNIX_ONLY_TEST()
1328 const auto line_spacing1 = boxes[1].rect.top() - boxes[0].rect.bottom(); in UNIX_ONLY_TEST()
1329 const auto line_spacing2 = boxes[2].rect.top() - boxes[1].rect.bottom(); in UNIX_ONLY_TEST()
1335 …RT(reporter, SkScalarNearlyEqual(lineBoxes[0].rect.bottom() - boxes[0].rect.bottom(), boxes[0].rec… in UNIX_ONLY_TEST()
1336 …RT(reporter, SkScalarNearlyEqual(lineBoxes[1].rect.bottom() - boxes[1].rect.bottom(), boxes[1].rec… in UNIX_ONLY_TEST()
1337 …RT(reporter, SkScalarNearlyEqual(lineBoxes[2].rect.bottom() - boxes[2].rect.bottom(), boxes[2].rec… in UNIX_ONLY_TEST()
1340 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[1].rect.left(), 0, EPSILON100)); in UNIX_ONLY_TEST()
1341 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[1].rect.right(), 43.843f, EPSILON100)); in UNIX_ONLY_TEST()
1390 …std::vector<TextBox> boxes = paragraph->getRectsForRange(0, len, RectHeightStyle::kTight, rect_wid… in UNIX_ONLY_TEST() local
1393 canvas.drawRects(SK_ColorBLUE, boxes); in UNIX_ONLY_TEST()
1394 REPORTER_ASSERT(reporter, boxes.size() == 1ull); in UNIX_ONLY_TEST()
1395 REPORTER_ASSERT(reporter, lineBoxes.size() == boxes.size()); in UNIX_ONLY_TEST()
1422 const auto actual_glyphs_top = boxes[0].rect.top() - lineBoxes[0].rect.top(); in UNIX_ONLY_TEST()
1423 const auto actual_glyphs_bottom = boxes[0].rect.bottom() - lineBoxes[0].rect.top(); in UNIX_ONLY_TEST()
1434 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.left(), 0, EPSILON100)); in UNIX_ONLY_TEST()
1482 …std::vector<TextBox> boxes = paragraph->getRectsForRange(0, len, RectHeightStyle::kTight, rect_wid… in UNIX_ONLY_TEST() local
1485 canvas.drawRects(SK_ColorBLUE, boxes); in UNIX_ONLY_TEST()
1486 REPORTER_ASSERT(reporter, boxes.size() == 3ull); in UNIX_ONLY_TEST()
1487 REPORTER_ASSERT(reporter, lineBoxes.size() == boxes.size()); in UNIX_ONLY_TEST()
1489 const auto line_spacing1 = boxes[1].rect.top() - boxes[0].rect.bottom(); in UNIX_ONLY_TEST()
1490 const auto line_spacing2 = boxes[2].rect.top() - boxes[1].rect.bottom(); in UNIX_ONLY_TEST()
1496 …RT(reporter, SkScalarNearlyEqual(lineBoxes[0].rect.bottom() - boxes[0].rect.bottom(), boxes[0].rec… in UNIX_ONLY_TEST()
1497 …RT(reporter, SkScalarNearlyEqual(lineBoxes[1].rect.bottom() - boxes[1].rect.bottom(), boxes[1].rec… in UNIX_ONLY_TEST()
1498 …RT(reporter, SkScalarNearlyEqual(lineBoxes[2].rect.bottom() - boxes[2].rect.bottom(), boxes[2].rec… in UNIX_ONLY_TEST()
1501 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[1].rect.left(), 0, EPSILON100)); in UNIX_ONLY_TEST()
1539 …std::vector<TextBox> boxes = paragraph->getRectsForRange(0, len, RectHeightStyle::kTight, rect_wid… in UNIX_ONLY_TEST() local
1542 canvas.drawRects(SK_ColorBLUE, boxes); in UNIX_ONLY_TEST()
1543 REPORTER_ASSERT(reporter, boxes.size() == 3ull); in UNIX_ONLY_TEST()
1544 REPORTER_ASSERT(reporter, lineBoxes.size() == boxes.size()); in UNIX_ONLY_TEST()
1546 const auto line_spacing1 = boxes[1].rect.top() - boxes[0].rect.bottom(); in UNIX_ONLY_TEST()
1547 const auto line_spacing2 = boxes[2].rect.top() - boxes[1].rect.bottom(); in UNIX_ONLY_TEST()
1553 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(lineBoxes[0].rect.top(), boxes[0].rect.top())); in UNIX_ONLY_TEST()
1555 …REPORTER_ASSERT(reporter, SkScalarNearlyEqual(lineBoxes[2].rect.bottom(), boxes[2].rect.bottom())); in UNIX_ONLY_TEST()
1557 const auto halfLeading = lineBoxes[0].rect.bottom() - boxes[0].rect.bottom(); in UNIX_ONLY_TEST()
1561 …REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[1].rect.top() - lineBoxes[1].rect.top(), halfL… in UNIX_ONLY_TEST()
1562 …REPORTER_ASSERT(reporter, SkScalarNearlyEqual(lineBoxes[1].rect.bottom() - boxes[1].rect.bottom(),… in UNIX_ONLY_TEST()
1563 …REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[2].rect.top() - lineBoxes[2].rect.top(), halfL… in UNIX_ONLY_TEST()
1566 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[1].rect.left(), 0, EPSILON100)); in UNIX_ONLY_TEST()
1567 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[1].rect.right(), 43.843f, EPSILON100)); in UNIX_ONLY_TEST()
1875 auto boxes = paragraph->getRectsForRange(0, 100, rect_height_style, rect_width_style); in UNIX_ONLY_TEST() local
1876 canvas.drawRects(SK_ColorRED, boxes); in UNIX_ONLY_TEST()
1966 auto boxes = paragraph->getRectsForRange(0, 100, rect_height_style, rect_width_style); in UNIX_ONLY_TEST() local
1967 canvas.drawRects(SK_ColorRED, boxes); in UNIX_ONLY_TEST()
1968 REPORTER_ASSERT(reporter, boxes.size() == 3); in UNIX_ONLY_TEST()
1970 boxes = paragraph->getRectsForRange(240, 250, rect_height_style, rect_width_style); in UNIX_ONLY_TEST()
1971 canvas.drawRects(SK_ColorBLUE, boxes); in UNIX_ONLY_TEST()
1972 REPORTER_ASSERT(reporter, boxes.size() == 1); in UNIX_ONLY_TEST()
1974 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.left(), 588, EPSILON100)); in UNIX_ONLY_TEST()
1975 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.top(), 130, EPSILON100)); in UNIX_ONLY_TEST()
1976 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.right(), 640, EPSILON100)); in UNIX_ONLY_TEST()
1977 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.bottom(), 156, EPSILON100)); in UNIX_ONLY_TEST()
2020 auto boxes = paragraph->getRectsForRange(0, 30, rect_height_style, rect_width_style); in UNIX_ONLY_TEST() local
2021 for (size_t i = 0; i < boxes.size(); ++i) { in UNIX_ONLY_TEST()
2022 canvas.get()->drawRect(boxes[i].rect, paint); in UNIX_ONLY_TEST()
2024 REPORTER_ASSERT(reporter, boxes.size() == 2ull); in UNIX_ONLY_TEST()
2025 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.left(), 562, EPSILON100)); in UNIX_ONLY_TEST()
2026 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.top(), 0, EPSILON100)); in UNIX_ONLY_TEST()
2027 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.right(), 900, EPSILON100)); in UNIX_ONLY_TEST()
2028 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.bottom(), 26, EPSILON100)); in UNIX_ONLY_TEST()
2031 boxes = paragraph->getRectsForRange(240, 250, rect_height_style, rect_width_style); in UNIX_ONLY_TEST()
2032 for (size_t i = 0; i < boxes.size(); ++i) { in UNIX_ONLY_TEST()
2033 canvas.get()->drawRect(boxes[i].rect, paint); in UNIX_ONLY_TEST()
2035 REPORTER_ASSERT(reporter, boxes.size() == 1ull); in UNIX_ONLY_TEST()
2036 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.left(), 68, EPSILON100)); in UNIX_ONLY_TEST()
2037 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.top(), 130, EPSILON100)); in UNIX_ONLY_TEST()
2038 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.right(), 120, EPSILON100)); in UNIX_ONLY_TEST()
2039 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.bottom(), 156, EPSILON100)); in UNIX_ONLY_TEST()
2085 auto boxes = paragraph->getRectsForRange(0, 100, rect_height_style, rect_width_style); in UNIX_ONLY_TEST() local
2086 for (size_t i = 0; i < boxes.size(); ++i) { in UNIX_ONLY_TEST()
2087 canvas.get()->drawRect(boxes[i].rect, paint); in UNIX_ONLY_TEST()
2089 REPORTER_ASSERT(reporter, boxes.size() == 2ull); in UNIX_ONLY_TEST()
2407 …std::vector<TextBox> boxes = paragraph->getRectsForRange(0, 100, rect_height_style, rect_width_sty… in UNIX_ONLY_TEST() local
2408 canvas.drawRects(SK_ColorRED, boxes); in UNIX_ONLY_TEST()
2410 REPORTER_ASSERT(reporter, boxes.size() == 1ull); in UNIX_ONLY_TEST()
2412 …REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.left(), 538.548f, EPSILON100)); // DI… in UNIX_ONLY_TEST()
2413 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.top(), -0.268f, EPSILON100)); in UNIX_ONLY_TEST()
2414 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.right(), 900, EPSILON100)); in UNIX_ONLY_TEST()
2415 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.bottom(), 44, EPSILON100)); in UNIX_ONLY_TEST()
2459 …std::vector<TextBox> boxes = paragraph->getRectsForRange(36, 40, rect_height_style, rect_width_sty… in UNIX_ONLY_TEST() local
2460 canvas.drawRects(SK_ColorRED, boxes); in UNIX_ONLY_TEST()
2462 REPORTER_ASSERT(reporter, boxes.size() == 2ull); in UNIX_ONLY_TEST()
2463 …REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.left(), 83.92f, EPSILON100)); // DIFF… in UNIX_ONLY_TEST()
2464 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.top(), -0.27f, EPSILON100)); in UNIX_ONLY_TEST()
2465 …REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.right(), 110.16f, EPSILON100)); // DIF… in UNIX_ONLY_TEST()
2466 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.bottom(), 44, EPSILON100)); in UNIX_ONLY_TEST()
2506 std::vector<TextBox> boxes = in UNIX_ONLY_TEST() local
2508 canvas.drawRects(SK_ColorRED, boxes); in UNIX_ONLY_TEST()
2510 REPORTER_ASSERT(reporter, boxes.size() == 2ull); // DIFF in UNIX_ONLY_TEST()
2511 …REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.left(), 561.5f, EPSILON100)); … in UNIX_ONLY_TEST()
2512 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.top(), -0.27f, EPSILON100)); in UNIX_ONLY_TEST()
2513 …REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.right(), 587.74f, EPSILON100)); … in UNIX_ONLY_TEST()
2514 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.bottom(), 44, EPSILON100)); in UNIX_ONLY_TEST()
3562 auto boxes = paragraph->getRectsForRange(5, 6, RectHeightStyle::kMax, RectWidthStyle::kTight); in UNIX_ONLY_TEST() local
3563 canvas.drawLines(SK_ColorRED, boxes); in UNIX_ONLY_TEST()
3566 boxes = paragraph->getRectsForRange(6, 7, RectHeightStyle::kMax, RectWidthStyle::kTight); in UNIX_ONLY_TEST()
3567 canvas.drawLines(SK_ColorRED, boxes); in UNIX_ONLY_TEST()
3570 boxes = paragraph->getRectsForRange(7, 8, RectHeightStyle::kMax, RectWidthStyle::kTight); in UNIX_ONLY_TEST()
3571 canvas.drawLines(SK_ColorRED, boxes); in UNIX_ONLY_TEST()
3582 boxes = paragraph->getRectsForRange(12, 13, RectHeightStyle::kMax, RectWidthStyle::kTight); in UNIX_ONLY_TEST()
3583 canvas.drawLines(SK_ColorRED, boxes); in UNIX_ONLY_TEST()
3584 boxes = paragraph->getRectsForRange(13, 14, RectHeightStyle::kMax, RectWidthStyle::kTight); in UNIX_ONLY_TEST()
3585 canvas.drawLines(SK_ColorRED, boxes); in UNIX_ONLY_TEST()
3586 boxes = paragraph->getRectsForRange(18, 19, RectHeightStyle::kMax, RectWidthStyle::kTight); in UNIX_ONLY_TEST()
3587 canvas.drawLines(SK_ColorRED, boxes); in UNIX_ONLY_TEST()
3588 boxes = paragraph->getRectsForRange(19, 20, RectHeightStyle::kMax, RectWidthStyle::kTight); in UNIX_ONLY_TEST()
3589 canvas.drawLines(SK_ColorRED, boxes); in UNIX_ONLY_TEST()
3590 boxes = paragraph->getRectsForRange(24, 25, RectHeightStyle::kMax, RectWidthStyle::kTight); in UNIX_ONLY_TEST()
3591 canvas.drawLines(SK_ColorRED, boxes); in UNIX_ONLY_TEST()
3592 boxes = paragraph->getRectsForRange(25, 26, RectHeightStyle::kMax, RectWidthStyle::kTight); in UNIX_ONLY_TEST()
3593 canvas.drawLines(SK_ColorRED, boxes); in UNIX_ONLY_TEST()
3594 boxes = paragraph->getRectsForRange(30, 31, RectHeightStyle::kMax, RectWidthStyle::kTight); in UNIX_ONLY_TEST()
3595 canvas.drawLines(SK_ColorRED, boxes); in UNIX_ONLY_TEST()
3596 boxes = paragraph->getRectsForRange(31, 32, RectHeightStyle::kMax, RectWidthStyle::kTight); in UNIX_ONLY_TEST()
3597 canvas.drawLines(SK_ColorRED, boxes); in UNIX_ONLY_TEST()
4361 auto boxes = paragraph->getRectsForRange(0, 0, rect_height_style, rect_width_style); in UNIX_ONLY_TEST() local
4362 REPORTER_ASSERT(reporter, boxes.empty()); in UNIX_ONLY_TEST()
4365 auto boxes = paragraph->getRectsForRange(0, 1, rect_height_style, rect_width_style); in UNIX_ONLY_TEST() local
4366 canvas.drawRects(SK_ColorRED, boxes); in UNIX_ONLY_TEST()
4367 REPORTER_ASSERT(reporter, boxes.size() == 1); in UNIX_ONLY_TEST()
4368 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.left(), 0, EPSILON100)); in UNIX_ONLY_TEST()
4369 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.top(), 34.5f, EPSILON100)); in UNIX_ONLY_TEST()
4370 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.right(), 50, EPSILON100)); in UNIX_ONLY_TEST()
4371 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.bottom(), 84.5f, EPSILON100)); in UNIX_ONLY_TEST()
4374 auto boxes = paragraph->getRectsForRange(0, 1, rect_height_max_style, rect_width_style); in UNIX_ONLY_TEST() local
4375 canvas.drawRects(SK_ColorRED, boxes); in UNIX_ONLY_TEST()
4376 REPORTER_ASSERT(reporter, boxes.size() == 1); in UNIX_ONLY_TEST()
4377 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.left(), 0, EPSILON100)); in UNIX_ONLY_TEST()
4378 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.top(), 0, EPSILON100)); in UNIX_ONLY_TEST()
4379 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.right(), 50, EPSILON100)); in UNIX_ONLY_TEST()
4380 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.bottom(), 95, EPSILON100)); in UNIX_ONLY_TEST()
4383 auto boxes = paragraph->getRectsForRange(6, 10, rect_height_style, rect_width_style); in UNIX_ONLY_TEST() local
4384 canvas.drawRects(SK_ColorRED, boxes); in UNIX_ONLY_TEST()
4385 REPORTER_ASSERT(reporter, boxes.size() == 1); in UNIX_ONLY_TEST()
4386 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.left(), 300, EPSILON100)); in UNIX_ONLY_TEST()
4387 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.top(), 34.5f, EPSILON100)); in UNIX_ONLY_TEST()
4388 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.right(), 500, EPSILON100)); in UNIX_ONLY_TEST()
4389 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.bottom(), 84.5f, EPSILON100)); in UNIX_ONLY_TEST()
4392 auto boxes = paragraph->getRectsForRange(6, 10, rect_height_max_style, rect_width_style); in UNIX_ONLY_TEST() local
4393 canvas.drawRects(SK_ColorRED, boxes); in UNIX_ONLY_TEST()
4394 REPORTER_ASSERT(reporter, boxes.size() == 1); in UNIX_ONLY_TEST()
4395 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.left(), 300, EPSILON100)); in UNIX_ONLY_TEST()
4396 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.top(), 0, EPSILON100)); in UNIX_ONLY_TEST()
4397 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.right(), 500, EPSILON100)); in UNIX_ONLY_TEST()
4398 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.bottom(), 95, EPSILON100)); in UNIX_ONLY_TEST()
4401 auto boxes = paragraph->getRectsForRange(14, 16, rect_height_max_style, rect_width_style); in UNIX_ONLY_TEST() local
4402 canvas.drawRects(SK_ColorRED, boxes); in UNIX_ONLY_TEST()
4403 REPORTER_ASSERT(reporter, boxes.size() == 1); in UNIX_ONLY_TEST()
4404 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.left(), 0, EPSILON100)); in UNIX_ONLY_TEST()
4405 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.top(), 190, EPSILON100)); in UNIX_ONLY_TEST()
4406 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.right(), 100, EPSILON100)); in UNIX_ONLY_TEST()
4407 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.bottom(), 285, EPSILON100)); in UNIX_ONLY_TEST()
4410 auto boxes = paragraph->getRectsForRange(20, 25, rect_height_max_style, rect_width_style); in UNIX_ONLY_TEST() local
4411 canvas.drawRects(SK_ColorRED, boxes); in UNIX_ONLY_TEST()
4412 REPORTER_ASSERT(reporter, boxes.size() == 1); in UNIX_ONLY_TEST()
4413 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.left(), 50, EPSILON100)); in UNIX_ONLY_TEST()
4414 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.top(), 285, EPSILON100)); in UNIX_ONLY_TEST()
4415 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.right(), 300, EPSILON100)); in UNIX_ONLY_TEST()
4416 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.bottom(), 380, EPSILON100)); in UNIX_ONLY_TEST()
4468 auto boxes = paragraph->getRectsForRange(0, 0, rect_height_style, rect_width_style); in UNIX_ONLY_TEST() local
4469 REPORTER_ASSERT(reporter, boxes.empty()); in UNIX_ONLY_TEST()
4472 auto boxes = paragraph->getRectsForRange(0, 1, rect_height_style, rect_width_style); in UNIX_ONLY_TEST() local
4473 canvas.drawRects(SK_ColorRED, boxes); in UNIX_ONLY_TEST()
4474 REPORTER_ASSERT(reporter, boxes.size() == 1); in UNIX_ONLY_TEST()
4475 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.left(), 0, EPSILON100)); in UNIX_ONLY_TEST()
4476 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.top(), 24, EPSILON100)); in UNIX_ONLY_TEST()
4477 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.right(), 50, EPSILON100)); in UNIX_ONLY_TEST()
4478 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.bottom(), 74, EPSILON100)); in UNIX_ONLY_TEST()
4481 auto boxes = paragraph->getRectsForRange(0, 1, rect_height_max_style, rect_width_style); in UNIX_ONLY_TEST() local
4482 canvas.drawRects(SK_ColorRED, boxes); in UNIX_ONLY_TEST()
4483 REPORTER_ASSERT(reporter, boxes.size() == 1); in UNIX_ONLY_TEST()
4484 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.left(), 0, EPSILON100)); in UNIX_ONLY_TEST()
4485 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.top(), 0, EPSILON100)); in UNIX_ONLY_TEST()
4486 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.right(), 50, EPSILON100)); in UNIX_ONLY_TEST()
4487 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.bottom(), 80, EPSILON100)); in UNIX_ONLY_TEST()
4490 auto boxes = paragraph->getRectsForRange(6, 10, rect_height_style, rect_width_style); in UNIX_ONLY_TEST() local
4491 canvas.drawRects(SK_ColorRED, boxes); in UNIX_ONLY_TEST()
4492 REPORTER_ASSERT(reporter, boxes.size() == 1); in UNIX_ONLY_TEST()
4493 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.left(), 300, EPSILON100)); in UNIX_ONLY_TEST()
4494 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.top(), 24, EPSILON100)); in UNIX_ONLY_TEST()
4495 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.right(), 500, EPSILON100)); in UNIX_ONLY_TEST()
4496 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.bottom(), 74, EPSILON100)); in UNIX_ONLY_TEST()
4499 auto boxes = paragraph->getRectsForRange(6, 10, rect_height_max_style, rect_width_style); in UNIX_ONLY_TEST() local
4500 canvas.drawRects(SK_ColorRED, boxes); in UNIX_ONLY_TEST()
4501 REPORTER_ASSERT(reporter, boxes.size() == 1); in UNIX_ONLY_TEST()
4502 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.left(), 300, EPSILON100)); in UNIX_ONLY_TEST()
4503 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.top(), 0, EPSILON100)); in UNIX_ONLY_TEST()
4504 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.right(), 500, EPSILON100)); in UNIX_ONLY_TEST()
4505 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.bottom(), 80, EPSILON100)); in UNIX_ONLY_TEST()
4508 auto boxes = paragraph->getRectsForRange(14, 16, rect_height_max_style, rect_width_style); in UNIX_ONLY_TEST() local
4509 canvas.drawRects(SK_ColorRED, boxes); in UNIX_ONLY_TEST()
4510 REPORTER_ASSERT(reporter, boxes.size() == 1); in UNIX_ONLY_TEST()
4511 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.left(), 0, EPSILON100)); in UNIX_ONLY_TEST()
4512 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.top(), 160, EPSILON100)); in UNIX_ONLY_TEST()
4513 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.right(), 100, EPSILON100)); in UNIX_ONLY_TEST()
4514 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.bottom(), 240, EPSILON100)); in UNIX_ONLY_TEST()
4517 auto boxes = paragraph->getRectsForRange(20, 25, rect_height_max_style, rect_width_style); in UNIX_ONLY_TEST() local
4518 canvas.drawRects(SK_ColorRED, boxes); in UNIX_ONLY_TEST()
4519 REPORTER_ASSERT(reporter, boxes.size() == 1); in UNIX_ONLY_TEST()
4520 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.left(), 50, EPSILON100)); in UNIX_ONLY_TEST()
4521 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.top(), 240, EPSILON100)); in UNIX_ONLY_TEST()
4522 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.right(), 300, EPSILON100)); in UNIX_ONLY_TEST()
4523 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.bottom(), 320, EPSILON100)); in UNIX_ONLY_TEST()
4576 auto boxes = paragraph->getRectsForRange(0, 0, rect_height_style, rect_width_style); in UNIX_ONLY_TEST() local
4577 REPORTER_ASSERT(reporter, boxes.empty()); in UNIX_ONLY_TEST()
4580 auto boxes = paragraph->getRectsForRange(0, 1, rect_height_style, rect_width_style); in UNIX_ONLY_TEST() local
4581 canvas.drawRects(SK_ColorRED, boxes); in UNIX_ONLY_TEST()
4582 REPORTER_ASSERT(reporter, boxes.size() == 1); in UNIX_ONLY_TEST()
4583 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.left(), 0, epsilon)); in UNIX_ONLY_TEST()
4584 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.top(), 8, epsilon)); in UNIX_ONLY_TEST()
4585 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.right(), 50, epsilon)); in UNIX_ONLY_TEST()
4586 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.bottom(), 58, epsilon)); in UNIX_ONLY_TEST()
4589 auto boxes = paragraph->getRectsForRange(0, 1, rect_height_max_style, rect_width_style); in UNIX_ONLY_TEST() local
4590 canvas.drawRects(SK_ColorRED, boxes); in UNIX_ONLY_TEST()
4591 REPORTER_ASSERT(reporter, boxes.size() == 1); in UNIX_ONLY_TEST()
4592 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.left(), 0, epsilon)); in UNIX_ONLY_TEST()
4593 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.top(), 0, epsilon)); in UNIX_ONLY_TEST()
4594 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.right(), 50, epsilon)); in UNIX_ONLY_TEST()
4595 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.bottom(), 60, epsilon)); in UNIX_ONLY_TEST()
4598 auto boxes = paragraph->getRectsForRange(6, 10, rect_height_style, rect_width_style); in UNIX_ONLY_TEST() local
4599 canvas.drawRects(SK_ColorRED, boxes); in UNIX_ONLY_TEST()
4600 REPORTER_ASSERT(reporter, boxes.size() == 1); in UNIX_ONLY_TEST()
4601 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.left(), 300, epsilon)); in UNIX_ONLY_TEST()
4602 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.top(), 8, epsilon)); in UNIX_ONLY_TEST()
4603 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.right(), 500, epsilon)); in UNIX_ONLY_TEST()
4604 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.bottom(), 58, epsilon)); in UNIX_ONLY_TEST()
4607 auto boxes = paragraph->getRectsForRange(6, 10, rect_height_max_style, rect_width_style); in UNIX_ONLY_TEST() local
4608 canvas.drawRects(SK_ColorRED, boxes); in UNIX_ONLY_TEST()
4609 REPORTER_ASSERT(reporter, boxes.size() == 1); in UNIX_ONLY_TEST()
4610 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.left(), 300, epsilon)); in UNIX_ONLY_TEST()
4611 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.top(), 0, epsilon)); in UNIX_ONLY_TEST()
4612 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.right(), 500, epsilon)); in UNIX_ONLY_TEST()
4613 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.bottom(), 60, epsilon)); in UNIX_ONLY_TEST()
4616 auto boxes = paragraph->getRectsForRange(14, 16, rect_height_max_style, rect_width_style); in UNIX_ONLY_TEST() local
4617 canvas.drawRects(SK_ColorRED, boxes); in UNIX_ONLY_TEST()
4618 REPORTER_ASSERT(reporter, boxes.size() == 1); in UNIX_ONLY_TEST()
4619 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.left(), 0, epsilon)); in UNIX_ONLY_TEST()
4620 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.top(), 120, epsilon)); in UNIX_ONLY_TEST()
4621 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.right(), 100, epsilon)); in UNIX_ONLY_TEST()
4622 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.bottom(), 180, epsilon)); in UNIX_ONLY_TEST()
4625 auto boxes = paragraph->getRectsForRange(20, 25, rect_height_max_style, rect_width_style); in UNIX_ONLY_TEST() local
4626 canvas.drawRects(SK_ColorRED, boxes); in UNIX_ONLY_TEST()
4627 REPORTER_ASSERT(reporter, boxes.size() == 1); in UNIX_ONLY_TEST()
4628 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.left(), 50, epsilon)); in UNIX_ONLY_TEST()
4629 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.top(), 180, epsilon)); in UNIX_ONLY_TEST()
4630 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.right(), 300, epsilon)); in UNIX_ONLY_TEST()
4631 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.bottom(), 240, epsilon)); in UNIX_ONLY_TEST()
4775 auto boxes = paragraph->getRectsForRange(0, 0, rect_height_style, rect_width_style); in UNIX_ONLY_TEST() local
4776 REPORTER_ASSERT(reporter, boxes.empty()); in UNIX_ONLY_TEST()
4779 auto boxes = paragraph->getRectsForRange(0, 1, rect_height_style, rect_width_style); in UNIX_ONLY_TEST() local
4780 canvas.drawRects(SK_ColorRED, boxes); in UNIX_ONLY_TEST()
4781 REPORTER_ASSERT(reporter, boxes.size() == 1); in UNIX_ONLY_TEST()
4782 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.left(), 0, EPSILON100)); in UNIX_ONLY_TEST()
4783 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.top(), 26.5f, EPSILON100)); in UNIX_ONLY_TEST()
4784 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.right(), 20, EPSILON100)); in UNIX_ONLY_TEST()
4785 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.bottom(), 46.5f, EPSILON100)); in UNIX_ONLY_TEST()
4788 auto boxes = paragraph->getRectsForRange(0, 2, rect_height_strut_style, rect_width_style); in UNIX_ONLY_TEST() local
4789 canvas.drawRects(SK_ColorRED, boxes); in UNIX_ONLY_TEST()
4790 REPORTER_ASSERT(reporter, boxes.size() == 1); in UNIX_ONLY_TEST()
4791 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.left(), 0, EPSILON100)); in UNIX_ONLY_TEST()
4792 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.top(), 2.5f, EPSILON100)); in UNIX_ONLY_TEST()
4793 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.right(), 40, EPSILON100)); in UNIX_ONLY_TEST()
4794 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[0].rect.bottom(), 52.5f, EPSILON100)); in UNIX_ONLY_TEST()
6433 … auto boxes = paragraph->getRectsForRange(0, 100, RectHeightStyle::kTight, RectWidthStyle::kTight); in UNIX_ONLY_TEST() local
6435 for (auto& box : boxes) { in UNIX_ONLY_TEST()