Lines Matching refs:textpage
17 ScopedFPDFTextPage textpage(FPDFText_LoadPage(page)); in TEST_F() local
18 ASSERT_TRUE(textpage); in TEST_F()
20 EXPECT_EQ(-2, FPDFText_GetCharIndexFromTextIndex(textpage.get(), -2)); in TEST_F()
21 EXPECT_EQ(-1, FPDFText_GetCharIndexFromTextIndex(textpage.get(), -1)); in TEST_F()
22 EXPECT_EQ(0, FPDFText_GetCharIndexFromTextIndex(textpage.get(), 0)); in TEST_F()
23 EXPECT_EQ(1, FPDFText_GetCharIndexFromTextIndex(textpage.get(), 1)); in TEST_F()
24 EXPECT_EQ(2, FPDFText_GetCharIndexFromTextIndex(textpage.get(), 2)); in TEST_F()
25 EXPECT_EQ(5, FPDFText_GetCharIndexFromTextIndex(textpage.get(), 5)); in TEST_F()
26 EXPECT_EQ(10, FPDFText_GetCharIndexFromTextIndex(textpage.get(), 10)); in TEST_F()
27 EXPECT_EQ(29, FPDFText_GetCharIndexFromTextIndex(textpage.get(), 29)); in TEST_F()
28 EXPECT_EQ(-1, FPDFText_GetCharIndexFromTextIndex(textpage.get(), 30)); in TEST_F()
41 ScopedFPDFTextPage textpage(FPDFText_LoadPage(page)); in TEST_F() local
42 ASSERT_TRUE(textpage); in TEST_F()
44 EXPECT_EQ(-1, FPDFText_GetCharIndexFromTextIndex(textpage.get(), -2)); in TEST_F()
45 EXPECT_EQ(0, FPDFText_GetCharIndexFromTextIndex(textpage.get(), -1)); in TEST_F()
46 EXPECT_EQ(1, FPDFText_GetCharIndexFromTextIndex(textpage.get(), 0)); in TEST_F()
47 EXPECT_EQ(2, FPDFText_GetCharIndexFromTextIndex(textpage.get(), 1)); in TEST_F()
48 EXPECT_EQ(3, FPDFText_GetCharIndexFromTextIndex(textpage.get(), 2)); in TEST_F()
49 EXPECT_EQ(6, FPDFText_GetCharIndexFromTextIndex(textpage.get(), 5)); in TEST_F()
50 EXPECT_EQ(11, FPDFText_GetCharIndexFromTextIndex(textpage.get(), 10)); in TEST_F()
51 EXPECT_EQ(30, FPDFText_GetCharIndexFromTextIndex(textpage.get(), 29)); in TEST_F()
52 EXPECT_EQ(-1, FPDFText_GetCharIndexFromTextIndex(textpage.get(), 30)); in TEST_F()
53 EXPECT_EQ(-1, FPDFText_GetCharIndexFromTextIndex(textpage.get(), 31)); in TEST_F()
73 ScopedFPDFTextPage textpage(FPDFText_LoadPage(page)); in TEST_F() local
74 ASSERT_TRUE(textpage); in TEST_F()
76 EXPECT_EQ(-1, FPDFText_GetTextIndexFromCharIndex(textpage.get(), -2)); in TEST_F()
77 EXPECT_EQ(-1, FPDFText_GetTextIndexFromCharIndex(textpage.get(), -1)); in TEST_F()
78 EXPECT_EQ(0, FPDFText_GetTextIndexFromCharIndex(textpage.get(), 0)); in TEST_F()
79 EXPECT_EQ(1, FPDFText_GetTextIndexFromCharIndex(textpage.get(), 1)); in TEST_F()
80 EXPECT_EQ(2, FPDFText_GetTextIndexFromCharIndex(textpage.get(), 2)); in TEST_F()
81 EXPECT_EQ(5, FPDFText_GetTextIndexFromCharIndex(textpage.get(), 5)); in TEST_F()
82 EXPECT_EQ(10, FPDFText_GetTextIndexFromCharIndex(textpage.get(), 10)); in TEST_F()
83 EXPECT_EQ(29, FPDFText_GetTextIndexFromCharIndex(textpage.get(), 29)); in TEST_F()
84 EXPECT_EQ(-1, FPDFText_GetTextIndexFromCharIndex(textpage.get(), 30)); in TEST_F()
97 ScopedFPDFTextPage textpage(FPDFText_LoadPage(page)); in TEST_F() local
98 ASSERT_TRUE(textpage); in TEST_F()
100 EXPECT_EQ(-1, FPDFText_GetTextIndexFromCharIndex(textpage.get(), -2)); in TEST_F()
101 EXPECT_EQ(-1, FPDFText_GetTextIndexFromCharIndex(textpage.get(), -1)); in TEST_F()
102 EXPECT_EQ(-1, FPDFText_GetTextIndexFromCharIndex(textpage.get(), 0)); in TEST_F()
103 EXPECT_EQ(0, FPDFText_GetTextIndexFromCharIndex(textpage.get(), 1)); in TEST_F()
104 EXPECT_EQ(1, FPDFText_GetTextIndexFromCharIndex(textpage.get(), 2)); in TEST_F()
105 EXPECT_EQ(4, FPDFText_GetTextIndexFromCharIndex(textpage.get(), 5)); in TEST_F()
106 EXPECT_EQ(9, FPDFText_GetTextIndexFromCharIndex(textpage.get(), 10)); in TEST_F()
107 EXPECT_EQ(28, FPDFText_GetTextIndexFromCharIndex(textpage.get(), 29)); in TEST_F()
108 EXPECT_EQ(29, FPDFText_GetTextIndexFromCharIndex(textpage.get(), 30)); in TEST_F()
109 EXPECT_EQ(-1, FPDFText_GetTextIndexFromCharIndex(textpage.get(), 31)); in TEST_F()