Lines Matching refs:EXPECT_EQ
57 EXPECT_EQ(expectedWidths, measuredText->widths); in TEST()
71 EXPECT_EQ(MinikinRect(0.0f, 0.0f, 0.0f, 0.0f), mt->getBounds(text, Range(0, 0))); in TEST()
72 EXPECT_EQ(MinikinRect(0.0f, 10.0f, 10.0f, 0.0f), mt->getBounds(text, Range(0, 1))); in TEST()
73 EXPECT_EQ(MinikinRect(0.0f, 10.0f, 20.0f, 0.0f), mt->getBounds(text, Range(0, 2))); in TEST()
74 EXPECT_EQ(MinikinRect(0.0f, 10.0f, 10.0f, 0.0f), mt->getBounds(text, Range(1, 2))); in TEST()
75 EXPECT_EQ(MinikinRect(0.0f, 10.0f, 130.0f, 0.0f), mt->getBounds(text, Range(0, text.size()))); in TEST()
93 EXPECT_EQ(MinikinRect(0.0f, 0.0f, 0.0f, 0.0f), mt->getBounds(text, Range(0, 0))); in TEST()
94 EXPECT_EQ(MinikinRect(0.0f, 10.0f, 10.0f, 0.0f), mt->getBounds(text, Range(0, 1))); in TEST()
95 EXPECT_EQ(MinikinRect(0.0f, 10.0f, 20.0f, 0.0f), mt->getBounds(text, Range(0, 2))); in TEST()
96 EXPECT_EQ(MinikinRect(0.0f, 10.0f, 10.0f, 0.0f), mt->getBounds(text, Range(1, 2))); in TEST()
97 EXPECT_EQ(MinikinRect(0.0f, 0.0f, 0.0f, 0.0f), mt->getBounds(text, Range(7, 7))); in TEST()
98 EXPECT_EQ(MinikinRect(0.0f, 20.0f, 20.0f, 0.0f), mt->getBounds(text, Range(7, 8))); in TEST()
99 EXPECT_EQ(MinikinRect(0.0f, 10.0f, 30.0f, 0.0f), mt->getBounds(text, Range(6, 8))); in TEST()
100 EXPECT_EQ(MinikinRect(0.0f, 10.0f, 190.0f, 0.0f), mt->getBounds(text, Range(0, text.size()))); in TEST()
114 EXPECT_EQ(MinikinExtent(0.0f, 0.0f), mt->getExtent(text, Range(0, 0))); in TEST()
115 EXPECT_EQ(MinikinExtent(-80.0f, 20.0f), mt->getExtent(text, Range(0, 1))); in TEST()
116 EXPECT_EQ(MinikinExtent(-80.0f, 20.0f), mt->getExtent(text, Range(0, 2))); in TEST()
117 EXPECT_EQ(MinikinExtent(-80.0f, 20.0f), mt->getExtent(text, Range(1, 2))); in TEST()
118 EXPECT_EQ(MinikinExtent(-80.0f, 20.0f), mt->getExtent(text, Range(0, text.size()))); in TEST()
136 EXPECT_EQ(MinikinExtent(0.0f, 0.0f), mt->getExtent(text, Range(0, 0))); in TEST()
137 EXPECT_EQ(MinikinExtent(-80.0f, 20.0f), mt->getExtent(text, Range(0, 1))); in TEST()
138 EXPECT_EQ(MinikinExtent(-80.0f, 20.0f), mt->getExtent(text, Range(0, 2))); in TEST()
139 EXPECT_EQ(MinikinExtent(-80.0f, 20.0f), mt->getExtent(text, Range(1, 2))); in TEST()
140 EXPECT_EQ(MinikinExtent(0.0f, 0.0f), mt->getExtent(text, Range(7, 7))); in TEST()
141 EXPECT_EQ(MinikinExtent(-160.0f, 40.0f), mt->getExtent(text, Range(7, 8))); in TEST()
142 EXPECT_EQ(MinikinExtent(-160.0f, 40.0f), mt->getExtent(text, Range(6, 8))); in TEST()
143 EXPECT_EQ(MinikinExtent(-160.0f, 40.0f), mt->getExtent(text, Range(0, text.size()))); in TEST()
163 EXPECT_EQ(0u, layout.nGlyphs()); in TEST()
169 EXPECT_EQ(0.0f, layout.getX(0)); in TEST()
170 EXPECT_EQ(0.0f, layout.getY(0)); in TEST()
171 EXPECT_EQ(10.0f, layout.getAdvance()); in TEST()
172 EXPECT_EQ(10.0f, layout.getCharAdvance(0)); in TEST()
173 EXPECT_EQ(1u, layout.getAdvances().size()); in TEST()
174 EXPECT_EQ(MinikinRect(0.0f, 10.0f, 10.0f, 0.0f), layout.getBounds()); in TEST()
180 EXPECT_EQ(0.0f, layout.getX(0)); in TEST()
181 EXPECT_EQ(0.0f, layout.getY(0)); in TEST()
182 EXPECT_EQ(10.0f, layout.getX(1)); in TEST()
183 EXPECT_EQ(0.0f, layout.getY(1)); in TEST()
184 EXPECT_EQ(20.0f, layout.getAdvance()); in TEST()
185 EXPECT_EQ(10.0f, layout.getCharAdvance(0)); in TEST()
186 EXPECT_EQ(10.0f, layout.getCharAdvance(1)); in TEST()
187 EXPECT_EQ(2u, layout.getAdvances().size()); in TEST()
188 EXPECT_EQ(MinikinRect(0.0f, 10.0f, 20.0f, 0.0f), layout.getBounds()); in TEST()
194 EXPECT_EQ(0.0f, layout.getX(0)); in TEST()
195 EXPECT_EQ(0.0f, layout.getY(0)); in TEST()
196 EXPECT_EQ(10.0f, layout.getAdvance()); in TEST()
197 EXPECT_EQ(10.0f, layout.getCharAdvance(0)); in TEST()
198 EXPECT_EQ(1u, layout.getAdvances().size()); in TEST()
199 EXPECT_EQ(MinikinRect(0.0f, 10.0f, 10.0f, 0.0f), layout.getBounds()); in TEST()
206 EXPECT_EQ(layout.getFont(0), layout.getFont(i)) << i; in TEST()
207 EXPECT_EQ(10.0f * i, layout.getX(i)) << i; in TEST()
208 EXPECT_EQ(0.0f, layout.getY(i)) << i; in TEST()
209 EXPECT_EQ(10.0f, layout.getCharAdvance(i)) << i; in TEST()
211 EXPECT_EQ(130.0f, layout.getAdvance()); in TEST()
212 EXPECT_EQ(text.size(), layout.getAdvances().size()); in TEST()
213 EXPECT_EQ(MinikinRect(0.0f, 10.0f, 130.0f, 0.0f), layout.getBounds()); in TEST()
237 EXPECT_EQ(0u, layout.nGlyphs()); in TEST()
243 EXPECT_EQ(0.0f, layout.getX(0)); in TEST()
244 EXPECT_EQ(0.0f, layout.getY(0)); in TEST()
245 EXPECT_EQ(10.0f, layout.getAdvance()); in TEST()
246 EXPECT_EQ(10.0f, layout.getCharAdvance(0)); in TEST()
247 EXPECT_EQ(1u, layout.getAdvances().size()); in TEST()
248 EXPECT_EQ(MinikinRect(0.0f, 10.0f, 10.0f, 0.0f), layout.getBounds()); in TEST()
254 EXPECT_EQ(0.0f, layout.getX(0)); in TEST()
255 EXPECT_EQ(0.0f, layout.getY(0)); in TEST()
256 EXPECT_EQ(10.0f, layout.getX(1)); in TEST()
257 EXPECT_EQ(0.0f, layout.getY(1)); in TEST()
258 EXPECT_EQ(20.0f, layout.getAdvance()); in TEST()
259 EXPECT_EQ(10.0f, layout.getCharAdvance(0)); in TEST()
260 EXPECT_EQ(10.0f, layout.getCharAdvance(1)); in TEST()
261 EXPECT_EQ(2u, layout.getAdvances().size()); in TEST()
262 EXPECT_EQ(MinikinRect(0.0f, 10.0f, 20.0f, 0.0f), layout.getBounds()); in TEST()
268 EXPECT_EQ(0.0f, layout.getX(0)); in TEST()
269 EXPECT_EQ(0.0f, layout.getY(0)); in TEST()
270 EXPECT_EQ(10.0f, layout.getAdvance()); in TEST()
271 EXPECT_EQ(10.0f, layout.getCharAdvance(0)); in TEST()
272 EXPECT_EQ(1u, layout.getAdvances().size()); in TEST()
273 EXPECT_EQ(MinikinRect(0.0f, 10.0f, 10.0f, 0.0f), layout.getBounds()); in TEST()
277 EXPECT_EQ(0u, layout.nGlyphs()); in TEST()
285 EXPECT_EQ(0.0f, layout.getX(0)); in TEST()
286 EXPECT_EQ(0.0f, layout.getY(0)); in TEST()
287 EXPECT_EQ(20.0f, layout.getAdvance()); in TEST()
288 EXPECT_EQ(20.0f, layout.getCharAdvance(0)); in TEST()
289 EXPECT_EQ(1u, layout.getAdvances().size()); in TEST()
290 EXPECT_EQ(MinikinRect(0.0f, 20.0f, 20.0f, 0.0f), layout.getBounds()); in TEST()
310 EXPECT_EQ(0u, layout.nGlyphs()); in TEST()
316 EXPECT_EQ(0.0f, layout.getX(0)); in TEST()
317 EXPECT_EQ(0.0f, layout.getY(0)); in TEST()
318 EXPECT_EQ(20.0f, layout.getAdvance()); in TEST()
319 EXPECT_EQ(20.0f, layout.getCharAdvance(0)); in TEST()
320 EXPECT_EQ(1u, layout.getAdvances().size()); in TEST()
321 EXPECT_EQ(MinikinRect(0.0f, 20.0f, 20.0f, 0.0f), layout.getBounds()); in TEST()
327 EXPECT_EQ(0.0f, layout.getX(0)); in TEST()
328 EXPECT_EQ(0.0f, layout.getY(0)); in TEST()
329 EXPECT_EQ(20.0f, layout.getX(1)); in TEST()
330 EXPECT_EQ(0.0f, layout.getY(1)); in TEST()
331 EXPECT_EQ(40.0f, layout.getAdvance()); in TEST()
332 EXPECT_EQ(20.0f, layout.getCharAdvance(0)); in TEST()
333 EXPECT_EQ(20.0f, layout.getCharAdvance(1)); in TEST()
334 EXPECT_EQ(2u, layout.getAdvances().size()); in TEST()
335 EXPECT_EQ(MinikinRect(0.0f, 20.0f, 40.0f, 0.0f), layout.getBounds()); in TEST()
341 EXPECT_EQ(0.0f, layout.getX(0)); in TEST()
342 EXPECT_EQ(0.0f, layout.getY(0)); in TEST()
343 EXPECT_EQ(20.0f, layout.getAdvance()); in TEST()
344 EXPECT_EQ(20.0f, layout.getCharAdvance(0)); in TEST()
345 EXPECT_EQ(1u, layout.getAdvances().size()); in TEST()
346 EXPECT_EQ(MinikinRect(0.0f, 20.0f, 20.0f, 0.0f), layout.getBounds()); in TEST()
353 EXPECT_EQ(layout.getFont(0), layout.getFont(i)) << i; in TEST()
354 EXPECT_EQ(20.0f * i, layout.getX(i)) << i; in TEST()
355 EXPECT_EQ(0.0f, layout.getY(i)) << i; in TEST()
356 EXPECT_EQ(20.0f, layout.getCharAdvance(i)) << i; in TEST()
358 EXPECT_EQ(260.0f, layout.getAdvance()); in TEST()
359 EXPECT_EQ(text.size(), layout.getAdvances().size()); in TEST()
360 EXPECT_EQ(MinikinRect(0.0f, 20.0f, 260.0f, 0.0f), layout.getBounds()); in TEST()
384 EXPECT_EQ(0u, layout.nGlyphs()); in TEST()
390 EXPECT_EQ(0.0f, layout.getX(0)); in TEST()
391 EXPECT_EQ(0.0f, layout.getY(0)); in TEST()
392 EXPECT_EQ(30.0f, layout.getAdvance()); in TEST()
393 EXPECT_EQ(30.0f, layout.getCharAdvance(0)); in TEST()
394 EXPECT_EQ(1u, layout.getAdvances().size()); in TEST()
395 EXPECT_EQ(MinikinRect(0.0f, 30.0f, 30.0f, 0.0f), layout.getBounds()); in TEST()
401 EXPECT_EQ(0.0f, layout.getX(0)); in TEST()
402 EXPECT_EQ(0.0f, layout.getY(0)); in TEST()
403 EXPECT_EQ(30.0f, layout.getX(1)); in TEST()
404 EXPECT_EQ(0.0f, layout.getY(1)); in TEST()
405 EXPECT_EQ(60.0f, layout.getAdvance()); in TEST()
406 EXPECT_EQ(30.0f, layout.getCharAdvance(0)); in TEST()
407 EXPECT_EQ(30.0f, layout.getCharAdvance(1)); in TEST()
408 EXPECT_EQ(2u, layout.getAdvances().size()); in TEST()
409 EXPECT_EQ(MinikinRect(0.0f, 30.0f, 60.0f, 0.0f), layout.getBounds()); in TEST()
415 EXPECT_EQ(0.0f, layout.getX(0)); in TEST()
416 EXPECT_EQ(0.0f, layout.getY(0)); in TEST()
417 EXPECT_EQ(30.0f, layout.getAdvance()); in TEST()
418 EXPECT_EQ(30.0f, layout.getCharAdvance(0)); in TEST()
419 EXPECT_EQ(1u, layout.getAdvances().size()); in TEST()
420 EXPECT_EQ(MinikinRect(0.0f, 30.0f, 30.0f, 0.0f), layout.getBounds()); in TEST()
424 EXPECT_EQ(0u, layout.nGlyphs()); in TEST()
430 EXPECT_EQ(0.0f, layout.getX(0)); in TEST()
431 EXPECT_EQ(0.0f, layout.getY(0)); in TEST()
432 EXPECT_EQ(30.0f, layout.getAdvance()); in TEST()
433 EXPECT_EQ(30.0f, layout.getCharAdvance(0)); in TEST()
434 EXPECT_EQ(1u, layout.getAdvances().size()); in TEST()
435 EXPECT_EQ(MinikinRect(0.0f, 30.0f, 30.0f, 0.0f), layout.getBounds()); in TEST()
441 EXPECT_EQ(0.0f, layout.getX(0)); in TEST()
442 EXPECT_EQ(0.0f, layout.getY(0)); in TEST()
443 EXPECT_EQ(30.0f, layout.getX(1)); in TEST()
444 EXPECT_EQ(0.0f, layout.getY(1)); in TEST()
445 EXPECT_EQ(60.0f, layout.getAdvance()); in TEST()
446 EXPECT_EQ(30.0f, layout.getCharAdvance(0)); in TEST()
447 EXPECT_EQ(30.0f, layout.getCharAdvance(1)); in TEST()
448 EXPECT_EQ(2u, layout.getAdvances().size()); in TEST()
449 EXPECT_EQ(MinikinRect(0.0f, 30.0f, 60.0f, 0.0f), layout.getBounds()); in TEST()
456 EXPECT_EQ(layout.getFont(0), layout.getFont(i)) << i; in TEST()
457 EXPECT_EQ(30.0f * i, layout.getX(i)) << i; in TEST()
458 EXPECT_EQ(0.0f, layout.getY(i)) << i; in TEST()
459 EXPECT_EQ(30.0f, layout.getCharAdvance(i)) << i; in TEST()
461 EXPECT_EQ(390.0f, layout.getAdvance()); in TEST()
462 EXPECT_EQ(text.size(), layout.getAdvances().size()); in TEST()
463 EXPECT_EQ(MinikinRect(0.0f, 30.0f, 390.0f, 0.0f), layout.getBounds()); in TEST()