Skip to content

Commit

Permalink
Fix libtxt unit tests (#6111)
Browse files Browse the repository at this point in the history
  • Loading branch information
jason-simmons authored Aug 29, 2018
1 parent c765bee commit 4a69907
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions third_party/txt/tests/paragraph_unittests.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1115,11 +1115,11 @@ TEST_F(ParagraphTest, GetWordBoundaryParagraph) {
rect = GetCoordinatesForGlyphPosition(*paragraph, 5);
GetCanvas()->drawLine(rect.fLeft, rect.fTop, rect.fLeft, rect.fBottom, paint);

EXPECT_EQ(paragraph->GetWordBoundary(5), txt::Paragraph::Range<size_t>(5, 6));
EXPECT_EQ(paragraph->GetWordBoundary(5), txt::Paragraph::Range<size_t>(5, 7));
rect = GetCoordinatesForGlyphPosition(*paragraph, 6);
GetCanvas()->drawLine(rect.fLeft, rect.fTop, rect.fLeft, rect.fBottom, paint);

EXPECT_EQ(paragraph->GetWordBoundary(6), txt::Paragraph::Range<size_t>(6, 7));
EXPECT_EQ(paragraph->GetWordBoundary(6), txt::Paragraph::Range<size_t>(5, 7));
rect = GetCoordinatesForGlyphPosition(*paragraph, 7);
GetCanvas()->drawLine(rect.fLeft, rect.fTop, rect.fLeft, rect.fBottom, paint);

Expand Down
2 changes: 1 addition & 1 deletion third_party/txt/tests/render_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
namespace txt {

RenderTest::RenderTest()
: snapshots_(0), font_collection_(GetTestFontCollection()) {}
: snapshots_(0), font_collection_(txt::GetTestFontCollection()) {}

RenderTest::~RenderTest() = default;

Expand Down

0 comments on commit 4a69907

Please sign in to comment.