Lines Matching refs:runs
123 auto runs = itemize(collection, "'a' 'b' 'c' 'd' 'e'", kRegularStyle); in TEST() local
124 ASSERT_EQ(1U, runs.size()); in TEST()
125 EXPECT_EQ(0, runs[0].start); in TEST()
126 EXPECT_EQ(5, runs[0].end); in TEST()
127 EXPECT_EQ(kLatinFont, getFontName(runs[0])); in TEST()
128 EXPECT_FALSE(runs[0].fakedFont.fakery.isFakeBold()); in TEST()
129 EXPECT_FALSE(runs[0].fakedFont.fakery.isFakeItalic()); in TEST()
131 runs = itemize(collection, "'a' 'b' 'c' 'd' 'e'", kItalicStyle); in TEST()
132 ASSERT_EQ(1U, runs.size()); in TEST()
133 EXPECT_EQ(0, runs[0].start); in TEST()
134 EXPECT_EQ(5, runs[0].end); in TEST()
135 EXPECT_EQ(kLatinItalicFont, getFontName(runs[0])); in TEST()
136 EXPECT_FALSE(runs[0].fakedFont.fakery.isFakeBold()); in TEST()
137 EXPECT_FALSE(runs[0].fakedFont.fakery.isFakeItalic()); in TEST()
139 runs = itemize(collection, "'a' 'b' 'c' 'd' 'e'", kBoldStyle); in TEST()
140 ASSERT_EQ(1U, runs.size()); in TEST()
141 EXPECT_EQ(0, runs[0].start); in TEST()
142 EXPECT_EQ(5, runs[0].end); in TEST()
143 EXPECT_EQ(kLatinBoldFont, getFontName(runs[0])); in TEST()
144 EXPECT_FALSE(runs[0].fakedFont.fakery.isFakeBold()); in TEST()
145 EXPECT_FALSE(runs[0].fakedFont.fakery.isFakeItalic()); in TEST()
147 runs = itemize(collection, "'a' 'b' 'c' 'd' 'e'", kBoldItalicStyle); in TEST()
148 ASSERT_EQ(1U, runs.size()); in TEST()
149 EXPECT_EQ(0, runs[0].start); in TEST()
150 EXPECT_EQ(5, runs[0].end); in TEST()
151 EXPECT_EQ(kLatinBoldItalicFont, getFontName(runs[0])); in TEST()
152 EXPECT_FALSE(runs[0].fakedFont.fakery.isFakeBold()); in TEST()
153 EXPECT_FALSE(runs[0].fakedFont.fakery.isFakeItalic()); in TEST()
157 runs = itemize(collection, "'a' ',' '-' 'd' '!'", kRegularStyle); in TEST()
158 ASSERT_EQ(1U, runs.size()); in TEST()
159 EXPECT_EQ(0, runs[0].start); in TEST()
160 EXPECT_EQ(5, runs[0].end); in TEST()
161 EXPECT_EQ(kLatinFont, getFontName(runs[0])); in TEST()
162 EXPECT_FALSE(runs[0].fakedFont.fakery.isFakeBold()); in TEST()
163 EXPECT_FALSE(runs[0].fakedFont.fakery.isFakeItalic()); in TEST()
165 runs = itemize(collection, "'a' ',' '-' 'd' '!'", kRegularStyle); in TEST()
166 ASSERT_EQ(1U, runs.size()); in TEST()
167 EXPECT_EQ(0, runs[0].start); in TEST()
168 EXPECT_EQ(5, runs[0].end); in TEST()
169 EXPECT_EQ(kLatinFont, getFontName(runs[0])); in TEST()
170 EXPECT_FALSE(runs[0].fakedFont.fakery.isFakeBold()); in TEST()
171 EXPECT_FALSE(runs[0].fakedFont.fakery.isFakeItalic()); in TEST()
175 runs = itemize(collection, "'a' U+0301", kRegularStyle); in TEST()
176 ASSERT_EQ(1U, runs.size()); in TEST()
177 EXPECT_EQ(0, runs[0].start); in TEST()
178 EXPECT_EQ(2, runs[0].end); in TEST()
179 EXPECT_EQ(kLatinFont, getFontName(runs[0])); in TEST()
180 EXPECT_FALSE(runs[0].fakedFont.fakery.isFakeBold()); in TEST()
181 EXPECT_FALSE(runs[0].fakedFont.fakery.isFakeItalic()); in TEST()
189 auto runs = itemize(collection, "'a' U+0301"); in TEST() local
190 ASSERT_EQ(1U, runs.size()); in TEST()
191 EXPECT_EQ(0, runs[0].start); in TEST()
192 EXPECT_EQ(2, runs[0].end); in TEST()
193 EXPECT_EQ(kLatinFont, getFontName(runs[0])); in TEST()
196 runs = itemize(collection, "U+13A0 U+0301"); in TEST()
197 ASSERT_EQ(1U, runs.size()); in TEST()
198 EXPECT_EQ(0, runs[0].start); in TEST()
199 EXPECT_EQ(2, runs[0].end); in TEST()
200 EXPECT_EQ(kCherokeeFont, getFontName(runs[0])); in TEST()
203 runs = itemize(collection, "U+13A0 U+0301 U+0301"); in TEST()
204 ASSERT_EQ(1U, runs.size()); in TEST()
205 EXPECT_EQ(0, runs[0].start); in TEST()
206 EXPECT_EQ(3, runs[0].end); in TEST()
207 EXPECT_EQ(kCherokeeFont, getFontName(runs[0])); in TEST()
209 runs = itemize(collection, "U+0301"); in TEST()
210 ASSERT_EQ(1U, runs.size()); in TEST()
211 EXPECT_EQ(0, runs[0].start); in TEST()
212 EXPECT_EQ(1, runs[0].end); in TEST()
213 EXPECT_EQ(kLatinFont, getFontName(runs[0])); in TEST()
216 runs = itemize(collection, "U+0301 U+13A0 U+0301"); in TEST()
217 ASSERT_EQ(2U, runs.size()); in TEST()
218 EXPECT_EQ(0, runs[0].start); in TEST()
219 EXPECT_EQ(1, runs[0].end); in TEST()
220 EXPECT_EQ(kLatinFont, getFontName(runs[0])); in TEST()
221 EXPECT_EQ(1, runs[1].start); in TEST()
222 EXPECT_EQ(3, runs[1].end); in TEST()
223 EXPECT_EQ(kCherokeeFont, getFontName(runs[1])); in TEST()
229 auto runs = itemize(collection, "U+1F469 U+1F467"); in TEST() local
230 ASSERT_EQ(1U, runs.size()); in TEST()
231 EXPECT_EQ(0, runs[0].start); in TEST()
232 EXPECT_EQ(4, runs[0].end); in TEST()
233 EXPECT_EQ(kEmojiFont, getFontName(runs[0])); in TEST()
234 EXPECT_FALSE(runs[0].fakedFont.fakery.isFakeBold()); in TEST()
235 EXPECT_FALSE(runs[0].fakedFont.fakery.isFakeItalic()); in TEST()
239 runs = itemize(collection, "'0' U+20E3"); in TEST()
240 ASSERT_EQ(1U, runs.size()); in TEST()
241 EXPECT_EQ(0, runs[0].start); in TEST()
242 EXPECT_EQ(2, runs[0].end); in TEST()
243 EXPECT_EQ(kEmojiFont, getFontName(runs[0])); in TEST()
244 EXPECT_FALSE(runs[0].fakedFont.fakery.isFakeBold()); in TEST()
245 EXPECT_FALSE(runs[0].fakedFont.fakery.isFakeItalic()); in TEST()
247 runs = itemize(collection, "U+1F470 U+20E3"); in TEST()
248 ASSERT_EQ(1U, runs.size()); in TEST()
249 EXPECT_EQ(0, runs[0].start); in TEST()
250 EXPECT_EQ(3, runs[0].end); in TEST()
251 EXPECT_EQ(kEmojiFont, getFontName(runs[0])); in TEST()
252 EXPECT_FALSE(runs[0].fakedFont.fakery.isFakeBold()); in TEST()
253 EXPECT_FALSE(runs[0].fakedFont.fakery.isFakeItalic()); in TEST()
255 runs = itemize(collection, "U+242EE U+1F470 U+20E3"); in TEST()
256 ASSERT_EQ(2U, runs.size()); in TEST()
257 EXPECT_EQ(0, runs[0].start); in TEST()
258 EXPECT_EQ(2, runs[0].end); in TEST()
259 EXPECT_EQ(kJAFont, getFontName(runs[0])); in TEST()
260 EXPECT_FALSE(runs[0].fakedFont.fakery.isFakeBold()); in TEST()
261 EXPECT_FALSE(runs[0].fakedFont.fakery.isFakeItalic()); in TEST()
263 EXPECT_EQ(2, runs[1].start); in TEST()
264 EXPECT_EQ(5, runs[1].end); in TEST()
265 EXPECT_EQ(kEmojiFont, getFontName(runs[1])); in TEST()
266 EXPECT_FALSE(runs[1].fakedFont.fakery.isFakeBold()); in TEST()
267 EXPECT_FALSE(runs[1].fakedFont.fakery.isFakeItalic()); in TEST()
271 runs = itemize(collection, "'a' U+20E3"); in TEST()
272 ASSERT_EQ(2U, runs.size()); in TEST()
273 EXPECT_EQ(0, runs[0].start); in TEST()
274 EXPECT_EQ(1, runs[0].end); in TEST()
275 EXPECT_EQ(kLatinFont, getFontName(runs[0])); in TEST()
276 EXPECT_FALSE(runs[0].fakedFont.fakery.isFakeBold()); in TEST()
277 EXPECT_FALSE(runs[0].fakedFont.fakery.isFakeItalic()); in TEST()
279 EXPECT_EQ(1, runs[1].start); in TEST()
280 EXPECT_EQ(2, runs[1].end); in TEST()
281 EXPECT_EQ(kEmojiFont, getFontName(runs[1])); in TEST()
282 EXPECT_FALSE(runs[1].fakedFont.fakery.isFakeBold()); in TEST()
283 EXPECT_FALSE(runs[1].fakedFont.fakery.isFakeItalic()); in TEST()
290 auto runs = itemize(collection, "U+3042 U+3044 U+3046 U+3048 U+304A", "ja-JP"); in TEST() local
291 ASSERT_EQ(1U, runs.size()); in TEST()
292 EXPECT_EQ(0, runs[0].start); in TEST()
293 EXPECT_EQ(5, runs[0].end); in TEST()
294 EXPECT_EQ(kJAFont, getFontName(runs[0])); in TEST()
295 EXPECT_FALSE(runs[0].fakedFont.fakery.isFakeBold()); in TEST()
296 EXPECT_FALSE(runs[0].fakedFont.fakery.isFakeItalic()); in TEST()
299 runs = itemize(collection, "U+B300 U+D55C U+BBFC U+AD6D", "en-US"); in TEST()
300 ASSERT_EQ(1U, runs.size()); in TEST()
301 EXPECT_EQ(0, runs[0].start); in TEST()
302 EXPECT_EQ(4, runs[0].end); in TEST()
303 EXPECT_EQ(kKOFont, getFontName(runs[0])); in TEST()
304 EXPECT_FALSE(runs[0].fakedFont.fakery.isFakeBold()); in TEST()
305 EXPECT_FALSE(runs[0].fakedFont.fakery.isFakeItalic()); in TEST()
309 runs = itemize(collection, "U+81ED U+82B1 U+5FCD", "ja-JP"); in TEST()
310 ASSERT_EQ(1U, runs.size()); in TEST()
311 EXPECT_EQ(0, runs[0].start); in TEST()
312 EXPECT_EQ(3, runs[0].end); in TEST()
313 EXPECT_EQ(kJAFont, getFontName(runs[0])); in TEST()
314 EXPECT_FALSE(runs[0].fakedFont.fakery.isFakeBold()); in TEST()
315 EXPECT_FALSE(runs[0].fakedFont.fakery.isFakeItalic()); in TEST()
319 runs = itemize(collection, "U+81ED U+82B1 U+5FCD", "zh-Hans"); in TEST()
320 ASSERT_EQ(1U, runs.size()); in TEST()
321 EXPECT_EQ(0, runs[0].start); in TEST()
322 EXPECT_EQ(3, runs[0].end); in TEST()
323 EXPECT_EQ(kZH_HansFont, getFontName(runs[0])); in TEST()
324 EXPECT_FALSE(runs[0].fakedFont.fakery.isFakeBold()); in TEST()
325 EXPECT_FALSE(runs[0].fakedFont.fakery.isFakeItalic()); in TEST()
329 runs = itemize(collection, "U+81ED U+4F60 U+5FCD", "ja-JP"); in TEST()
330 ASSERT_EQ(3U, runs.size()); in TEST()
331 EXPECT_EQ(0, runs[0].start); in TEST()
332 EXPECT_EQ(1, runs[0].end); in TEST()
333 EXPECT_EQ(kJAFont, getFontName(runs[0])); in TEST()
334 EXPECT_FALSE(runs[0].fakedFont.fakery.isFakeBold()); in TEST()
335 EXPECT_FALSE(runs[0].fakedFont.fakery.isFakeItalic()); in TEST()
337 EXPECT_EQ(1, runs[1].start); in TEST()
338 EXPECT_EQ(2, runs[1].end); in TEST()
339 EXPECT_EQ(kZH_HansFont, getFontName(runs[1])); in TEST()
340 EXPECT_FALSE(runs[1].fakedFont.fakery.isFakeBold()); in TEST()
341 EXPECT_FALSE(runs[1].fakedFont.fakery.isFakeItalic()); in TEST()
343 EXPECT_EQ(2, runs[2].start); in TEST()
344 EXPECT_EQ(3, runs[2].end); in TEST()
345 EXPECT_EQ(kJAFont, getFontName(runs[2])); in TEST()
346 EXPECT_FALSE(runs[2].fakedFont.fakery.isFakeBold()); in TEST()
347 EXPECT_FALSE(runs[2].fakedFont.fakery.isFakeItalic()); in TEST()
350 runs = itemize(collection, "U+4444 U+302D", ""); in TEST()
351 ASSERT_EQ(1U, runs.size()); in TEST()
352 EXPECT_EQ(0, runs[0].start); in TEST()
353 EXPECT_EQ(2, runs[0].end); in TEST()
354 EXPECT_EQ(kZH_HansFont, getFontName(runs[0])); in TEST()
355 EXPECT_FALSE(runs[0].fakedFont.fakery.isFakeBold()); in TEST()
356 EXPECT_FALSE(runs[0].fakedFont.fakery.isFakeItalic()); in TEST()
361 runs = itemize(collection, "U+242EE", "zh-Hans"); in TEST()
362 ASSERT_EQ(1U, runs.size()); in TEST()
363 EXPECT_EQ(0, runs[0].start); in TEST()
364 EXPECT_EQ(2, runs[0].end); in TEST()
365 EXPECT_EQ(kJAFont, getFontName(runs[0])); in TEST()
366 EXPECT_FALSE(runs[0].fakedFont.fakery.isFakeBold()); in TEST()
367 EXPECT_FALSE(runs[0].fakedFont.fakery.isFakeItalic()); in TEST()
373 auto runs = itemize(collection, "'a' U+4F60 'b' U+4F60 'c'", "en-US"); in TEST() local
374 ASSERT_EQ(5U, runs.size()); in TEST()
375 EXPECT_EQ(0, runs[0].start); in TEST()
376 EXPECT_EQ(1, runs[0].end); in TEST()
377 EXPECT_EQ(kLatinFont, getFontName(runs[0])); in TEST()
378 EXPECT_FALSE(runs[0].fakedFont.fakery.isFakeBold()); in TEST()
379 EXPECT_FALSE(runs[0].fakedFont.fakery.isFakeItalic()); in TEST()
381 EXPECT_EQ(1, runs[1].start); in TEST()
382 EXPECT_EQ(2, runs[1].end); in TEST()
383 EXPECT_EQ(kZH_HansFont, getFontName(runs[1])); in TEST()
384 EXPECT_FALSE(runs[1].fakedFont.fakery.isFakeBold()); in TEST()
385 EXPECT_FALSE(runs[1].fakedFont.fakery.isFakeItalic()); in TEST()
387 EXPECT_EQ(2, runs[2].start); in TEST()
388 EXPECT_EQ(3, runs[2].end); in TEST()
389 EXPECT_EQ(kLatinFont, getFontName(runs[2])); in TEST()
390 EXPECT_FALSE(runs[2].fakedFont.fakery.isFakeBold()); in TEST()
391 EXPECT_FALSE(runs[2].fakedFont.fakery.isFakeItalic()); in TEST()
393 EXPECT_EQ(3, runs[3].start); in TEST()
394 EXPECT_EQ(4, runs[3].end); in TEST()
395 EXPECT_EQ(kZH_HansFont, getFontName(runs[3])); in TEST()
396 EXPECT_FALSE(runs[3].fakedFont.fakery.isFakeBold()); in TEST()
397 EXPECT_FALSE(runs[3].fakedFont.fakery.isFakeItalic()); in TEST()
399 EXPECT_EQ(4, runs[4].start); in TEST()
400 EXPECT_EQ(5, runs[4].end); in TEST()
401 EXPECT_EQ(kLatinFont, getFontName(runs[4])); in TEST()
402 EXPECT_FALSE(runs[4].fakedFont.fakery.isFakeBold()); in TEST()
403 EXPECT_FALSE(runs[4].fakedFont.fakery.isFakeItalic()); in TEST()
416 auto runs = itemize(collection, "U+4FAE", "zh-Hans"); in TEST() local
417 ASSERT_EQ(1U, runs.size()); in TEST()
418 EXPECT_EQ(0, runs[0].start); in TEST()
419 EXPECT_EQ(1, runs[0].end); in TEST()
420 EXPECT_EQ(kZH_HansFont, getFontName(runs[0])); in TEST()
422 runs = itemize(collection, "U+4FAE U+FE00", "zh-Hans"); in TEST()
423 ASSERT_EQ(1U, runs.size()); in TEST()
424 EXPECT_EQ(0, runs[0].start); in TEST()
425 EXPECT_EQ(2, runs[0].end); in TEST()
426 EXPECT_EQ(kJAFont, getFontName(runs[0])); in TEST()
428 runs = itemize(collection, "U+4FAE U+4FAE U+FE00", "zh-Hans"); in TEST()
429 ASSERT_EQ(2U, runs.size()); in TEST()
430 EXPECT_EQ(0, runs[0].start); in TEST()
431 EXPECT_EQ(1, runs[0].end); in TEST()
432 EXPECT_EQ(kZH_HansFont, getFontName(runs[0])); in TEST()
433 EXPECT_EQ(1, runs[1].start); in TEST()
434 EXPECT_EQ(3, runs[1].end); in TEST()
435 EXPECT_EQ(kJAFont, getFontName(runs[1])); in TEST()
437 runs = itemize(collection, "U+4FAE U+4FAE U+FE00 U+4FAE", "zh-Hans"); in TEST()
438 ASSERT_EQ(3U, runs.size()); in TEST()
439 EXPECT_EQ(0, runs[0].start); in TEST()
440 EXPECT_EQ(1, runs[0].end); in TEST()
441 EXPECT_EQ(kZH_HansFont, getFontName(runs[0])); in TEST()
442 EXPECT_EQ(1, runs[1].start); in TEST()
443 EXPECT_EQ(3, runs[1].end); in TEST()
444 EXPECT_EQ(kJAFont, getFontName(runs[1])); in TEST()
445 EXPECT_EQ(3, runs[2].start); in TEST()
446 EXPECT_EQ(4, runs[2].end); in TEST()
447 EXPECT_EQ(kZH_HansFont, getFontName(runs[2])); in TEST()
450 runs = itemize(collection, "U+4FAE U+FE00 U+FE00", "zh-Hans"); in TEST()
451 ASSERT_EQ(1U, runs.size()); in TEST()
452 EXPECT_EQ(0, runs[0].start); in TEST()
453 EXPECT_EQ(3, runs[0].end); in TEST()
454 EXPECT_EQ(kJAFont, getFontName(runs[0])); in TEST()
457 runs = itemize(collection, "U+4FAE U+FE0E", "zh-Hans"); in TEST()
458 ASSERT_EQ(1U, runs.size()); in TEST()
459 EXPECT_EQ(0, runs[0].start); in TEST()
460 EXPECT_EQ(2, runs[0].end); in TEST()
461 EXPECT_EQ(kZH_HansFont, getFontName(runs[0])); in TEST()
466 runs = itemize(collection, "U+242EE", "zh-Hant"); in TEST()
467 ASSERT_EQ(1U, runs.size()); in TEST()
468 EXPECT_EQ(0, runs[0].start); in TEST()
469 EXPECT_EQ(2, runs[0].end); in TEST()
470 EXPECT_EQ(kZH_HantFont, getFontName(runs[0])); in TEST()
472 runs = itemize(collection, "U+242EE U+FE00", "zh-Hant"); in TEST()
473 ASSERT_EQ(1U, runs.size()); in TEST()
474 EXPECT_EQ(0, runs[0].start); in TEST()
475 EXPECT_EQ(3, runs[0].end); in TEST()
476 EXPECT_EQ(kJAFont, getFontName(runs[0])); in TEST()
478 runs = itemize(collection, "U+242EE U+242EE U+FE00", "zh-Hant"); in TEST()
479 ASSERT_EQ(2U, runs.size()); in TEST()
480 EXPECT_EQ(0, runs[0].start); in TEST()
481 EXPECT_EQ(2, runs[0].end); in TEST()
482 EXPECT_EQ(kZH_HantFont, getFontName(runs[0])); in TEST()
483 EXPECT_EQ(2, runs[1].start); in TEST()
484 EXPECT_EQ(5, runs[1].end); in TEST()
485 EXPECT_EQ(kJAFont, getFontName(runs[1])); in TEST()
487 runs = itemize(collection, "U+242EE U+242EE U+FE00 U+242EE", "zh-Hant"); in TEST()
488 ASSERT_EQ(3U, runs.size()); in TEST()
489 EXPECT_EQ(0, runs[0].start); in TEST()
490 EXPECT_EQ(2, runs[0].end); in TEST()
491 EXPECT_EQ(kZH_HantFont, getFontName(runs[0])); in TEST()
492 EXPECT_EQ(2, runs[1].start); in TEST()
493 EXPECT_EQ(5, runs[1].end); in TEST()
494 EXPECT_EQ(kJAFont, getFontName(runs[1])); in TEST()
495 EXPECT_EQ(5, runs[2].start); in TEST()
496 EXPECT_EQ(7, runs[2].end); in TEST()
497 EXPECT_EQ(kZH_HantFont, getFontName(runs[2])); in TEST()
500 runs = itemize(collection, "U+242EE U+FE00 U+FE00", "zh-Hans"); in TEST()
501 ASSERT_EQ(1U, runs.size()); in TEST()
502 EXPECT_EQ(0, runs[0].start); in TEST()
503 EXPECT_EQ(4, runs[0].end); in TEST()
504 EXPECT_EQ(kJAFont, getFontName(runs[0])); in TEST()
507 runs = itemize(collection, "U+242EE U+FE0E", "zh-Hant"); in TEST()
508 ASSERT_EQ(1U, runs.size()); in TEST()
509 EXPECT_EQ(0, runs[0].start); in TEST()
510 EXPECT_EQ(3, runs[0].end); in TEST()
511 EXPECT_EQ(kZH_HantFont, getFontName(runs[0])); in TEST()
514 runs = itemize(collection, "U+FE00", ""); in TEST()
515 ASSERT_EQ(1U, runs.size()); in TEST()
516 EXPECT_EQ(0, runs[0].start); in TEST()
517 EXPECT_EQ(1, runs[0].end); in TEST()
518 EXPECT_TRUE(runs[0].fakedFont.font == nullptr || kLatinFont == getFontName(runs[0])); in TEST()
520 runs = itemize(collection, "U+FE00", "zh-Hant"); in TEST()
521 ASSERT_EQ(1U, runs.size()); in TEST()
522 EXPECT_EQ(0, runs[0].start); in TEST()
523 EXPECT_EQ(1, runs[0].end); in TEST()
524 EXPECT_TRUE(runs[0].fakedFont.font == nullptr || kLatinFont == getFontName(runs[0])); in TEST()
528 runs = itemize(collection, "U+203C U+FE0F", "zh-Hant"); in TEST()
529 ASSERT_EQ(1U, runs.size()); in TEST()
530 EXPECT_EQ(0, runs[0].start); in TEST()
531 EXPECT_EQ(2, runs[0].end); in TEST()
532 EXPECT_EQ(kEmojiFont, getFontName(runs[0])); in TEST()
535 runs = itemize(collection, "U+203C U+FE0E", "zh-Hant"); in TEST()
536 ASSERT_EQ(1U, runs.size()); in TEST()
537 EXPECT_EQ(0, runs[0].start); in TEST()
538 EXPECT_EQ(2, runs[0].end); in TEST()
539 EXPECT_EQ(kLatinFont, getFontName(runs[0])); in TEST()
552 auto runs = itemize(collection, "U+845B", "zh-Hans"); in TEST() local
553 ASSERT_EQ(1U, runs.size()); in TEST()
554 EXPECT_EQ(0, runs[0].start); in TEST()
555 EXPECT_EQ(1, runs[0].end); in TEST()
556 EXPECT_EQ(kZH_HansFont, getFontName(runs[0])); in TEST()
558 runs = itemize(collection, "U+845B U+E0100", "zh-Hans"); in TEST()
559 ASSERT_EQ(1U, runs.size()); in TEST()
560 EXPECT_EQ(0, runs[0].start); in TEST()
561 EXPECT_EQ(3, runs[0].end); in TEST()
562 EXPECT_EQ(kJAFont, getFontName(runs[0])); in TEST()
564 runs = itemize(collection, "U+845B U+845B U+E0100", "zh-Hans"); in TEST()
565 ASSERT_EQ(2U, runs.size()); in TEST()
566 EXPECT_EQ(0, runs[0].start); in TEST()
567 EXPECT_EQ(1, runs[0].end); in TEST()
568 EXPECT_EQ(kZH_HansFont, getFontName(runs[0])); in TEST()
569 EXPECT_EQ(1, runs[1].start); in TEST()
570 EXPECT_EQ(4, runs[1].end); in TEST()
571 EXPECT_EQ(kJAFont, getFontName(runs[1])); in TEST()
573 runs = itemize(collection, "U+845B U+845B U+E0100 U+845B", "zh-Hans"); in TEST()
574 ASSERT_EQ(3U, runs.size()); in TEST()
575 EXPECT_EQ(0, runs[0].start); in TEST()
576 EXPECT_EQ(1, runs[0].end); in TEST()
577 EXPECT_EQ(kZH_HansFont, getFontName(runs[0])); in TEST()
578 EXPECT_EQ(1, runs[1].start); in TEST()
579 EXPECT_EQ(4, runs[1].end); in TEST()
580 EXPECT_EQ(kJAFont, getFontName(runs[1])); in TEST()
581 EXPECT_EQ(4, runs[2].start); in TEST()
582 EXPECT_EQ(5, runs[2].end); in TEST()
583 EXPECT_EQ(kZH_HansFont, getFontName(runs[2])); in TEST()
586 runs = itemize(collection, "U+845B U+E0100 U+E0100", "zh-Hans"); in TEST()
587 ASSERT_EQ(1U, runs.size()); in TEST()
588 EXPECT_EQ(0, runs[0].start); in TEST()
589 EXPECT_EQ(5, runs[0].end); in TEST()
590 EXPECT_EQ(kJAFont, getFontName(runs[0])); in TEST()
593 runs = itemize(collection, "U+845B U+E01E0", "zh-Hans"); in TEST()
594 ASSERT_EQ(1U, runs.size()); in TEST()
595 EXPECT_EQ(0, runs[0].start); in TEST()
596 EXPECT_EQ(3, runs[0].end); in TEST()
597 EXPECT_EQ(kZH_HansFont, getFontName(runs[0])); in TEST()
603 runs = itemize(collection, "U+242EE", "zh-Hant"); in TEST()
604 ASSERT_EQ(1U, runs.size()); in TEST()
605 EXPECT_EQ(0, runs[0].start); in TEST()
606 EXPECT_EQ(2, runs[0].end); in TEST()
607 EXPECT_EQ(kZH_HantFont, getFontName(runs[0])); in TEST()
609 runs = itemize(collection, "U+242EE U+E0101", "zh-Hant"); in TEST()
610 ASSERT_EQ(1U, runs.size()); in TEST()
611 EXPECT_EQ(0, runs[0].start); in TEST()
612 EXPECT_EQ(4, runs[0].end); in TEST()
613 EXPECT_EQ(kJAFont, getFontName(runs[0])); in TEST()
615 runs = itemize(collection, "U+242EE U+242EE U+E0101", "zh-Hant"); in TEST()
616 ASSERT_EQ(2U, runs.size()); in TEST()
617 EXPECT_EQ(0, runs[0].start); in TEST()
618 EXPECT_EQ(2, runs[0].end); in TEST()
619 EXPECT_EQ(kZH_HantFont, getFontName(runs[0])); in TEST()
620 EXPECT_EQ(2, runs[1].start); in TEST()
621 EXPECT_EQ(6, runs[1].end); in TEST()
622 EXPECT_EQ(kJAFont, getFontName(runs[1])); in TEST()
624 runs = itemize(collection, "U+242EE U+242EE U+E0101 U+242EE", "zh-Hant"); in TEST()
625 ASSERT_EQ(3U, runs.size()); in TEST()
626 EXPECT_EQ(0, runs[0].start); in TEST()
627 EXPECT_EQ(2, runs[0].end); in TEST()
628 EXPECT_EQ(kZH_HantFont, getFontName(runs[0])); in TEST()
629 EXPECT_EQ(2, runs[1].start); in TEST()
630 EXPECT_EQ(6, runs[1].end); in TEST()
631 EXPECT_EQ(kJAFont, getFontName(runs[1])); in TEST()
632 EXPECT_EQ(6, runs[2].start); in TEST()
633 EXPECT_EQ(8, runs[2].end); in TEST()
634 EXPECT_EQ(kZH_HantFont, getFontName(runs[2])); in TEST()
637 runs = itemize(collection, "U+242EE U+E0100 U+E0100", "zh-Hant"); in TEST()
638 ASSERT_EQ(1U, runs.size()); in TEST()
639 EXPECT_EQ(0, runs[0].start); in TEST()
640 EXPECT_EQ(6, runs[0].end); in TEST()
641 EXPECT_EQ(kJAFont, getFontName(runs[0])); in TEST()
644 runs = itemize(collection, "U+242EE U+E01E0", "zh-Hant"); in TEST()
645 ASSERT_EQ(1U, runs.size()); in TEST()
646 EXPECT_EQ(0, runs[0].start); in TEST()
647 EXPECT_EQ(4, runs[0].end); in TEST()
648 EXPECT_EQ(kZH_HantFont, getFontName(runs[0])); in TEST()
651 runs = itemize(collection, "U+E0100", ""); in TEST()
652 ASSERT_EQ(1U, runs.size()); in TEST()
653 EXPECT_EQ(0, runs[0].start); in TEST()
654 EXPECT_EQ(2, runs[0].end); in TEST()
655 EXPECT_TRUE(runs[0].fakedFont.font == nullptr || kLatinFont == getFontName(runs[0])); in TEST()
657 runs = itemize(collection, "U+E0100", "zh-Hant"); in TEST()
658 ASSERT_EQ(1U, runs.size()); in TEST()
659 EXPECT_EQ(0, runs[0].start); in TEST()
660 EXPECT_EQ(2, runs[0].end); in TEST()
661 EXPECT_TRUE(runs[0].fakedFont.font == nullptr || kLatinFont == getFontName(runs[0])); in TEST()
668 auto runs = itemize(collection, "'a' U+D83D 'a'"); in TEST() local
669 runs = itemize(collection, "'a' U+DC69 'a'"); in TEST()
670 runs = itemize(collection, "'a' U+D83D U+D83D 'a'"); in TEST()
671 runs = itemize(collection, "'a' U+DC69 U+DC69 'a'"); in TEST()
674 runs = itemize(collection, "U+FE00 U+FE00"); in TEST()
675 runs = itemize(collection, "U+E0100 U+E0100"); in TEST()
676 runs = itemize(collection, "U+FE00 U+E0100"); in TEST()
677 runs = itemize(collection, "U+E0100 U+FE00"); in TEST()
680 runs = itemize(collection, "U+302D"); in TEST()
681 runs = itemize(collection, "U+302D U+302D"); in TEST()
684 runs = itemize(collection, "U+FE00 U+302D U+E0100"); in TEST()
698 auto runs = itemize(collection, "U+3042 U+3044 U+3046 U+3048 U+304A", kBoldStyle, "ja-JP"); in TEST() local
699 ASSERT_EQ(1U, runs.size()); in TEST()
700 EXPECT_EQ(0, runs[0].start); in TEST()
701 EXPECT_EQ(5, runs[0].end); in TEST()
702 EXPECT_EQ(kJAFont, getFontName(runs[0])); in TEST()
703 EXPECT_TRUE(runs[0].fakedFont.fakery.isFakeBold()); in TEST()
704 EXPECT_FALSE(runs[0].fakedFont.fakery.isFakeItalic()); in TEST()
707 runs = itemize(collection, "U+3042 U+3044 U+3046 U+3048 U+304A", kItalicStyle, "ja-JP"); in TEST()
708 ASSERT_EQ(1U, runs.size()); in TEST()
709 EXPECT_EQ(0, runs[0].start); in TEST()
710 EXPECT_EQ(5, runs[0].end); in TEST()
711 EXPECT_EQ(kJAFont, getFontName(runs[0])); in TEST()
712 EXPECT_FALSE(runs[0].fakedFont.fakery.isFakeBold()); in TEST()
713 EXPECT_TRUE(runs[0].fakedFont.fakery.isFakeItalic()); in TEST()
716 runs = itemize(collection, "U+3042 U+3044 U+3046 U+3048 U+304A", kBoldItalicStyle, "ja-JP"); in TEST()
717 ASSERT_EQ(1U, runs.size()); in TEST()
718 EXPECT_EQ(0, runs[0].start); in TEST()
719 EXPECT_EQ(5, runs[0].end); in TEST()
720 EXPECT_EQ(kJAFont, getFontName(runs[0])); in TEST()
721 EXPECT_TRUE(runs[0].fakedFont.fakery.isFakeBold()); in TEST()
722 EXPECT_TRUE(runs[0].fakedFont.fakery.isFakeItalic()); in TEST()
737 auto runs = itemize(collection, "U+717D U+FE02"); in TEST() local
738 ASSERT_EQ(1U, runs.size()); in TEST()
739 EXPECT_EQ(0, runs[0].start); in TEST()
740 EXPECT_EQ(2, runs[0].end); in TEST()
741 EXPECT_EQ(kVSTestFont, getFontName(runs[0])); in TEST()
747 auto runs = itemize(collection, "'a' U+061C 'b'"); in TEST() local
748 ASSERT_EQ(1U, runs.size()); in TEST()
749 EXPECT_EQ(0, runs[0].start); in TEST()
750 EXPECT_EQ(3, runs[0].end); in TEST()
751 EXPECT_EQ(kLatinFont, getFontName(runs[0])); in TEST()
753 runs = itemize(collection, "'a' U+200D 'b'"); in TEST()
754 ASSERT_EQ(1U, runs.size()); in TEST()
755 EXPECT_EQ(0, runs[0].start); in TEST()
756 EXPECT_EQ(3, runs[0].end); in TEST()
757 EXPECT_EQ(kLatinFont, getFontName(runs[0])); in TEST()
759 runs = itemize(collection, "U+3042 U+061C U+3042"); in TEST()
760 ASSERT_EQ(1U, runs.size()); in TEST()
761 EXPECT_EQ(0, runs[0].start); in TEST()
762 EXPECT_EQ(3, runs[0].end); in TEST()
763 EXPECT_EQ(kJAFont, getFontName(runs[0])); in TEST()
765 runs = itemize(collection, "U+061C 'b'"); in TEST()
766 ASSERT_EQ(1U, runs.size()); in TEST()
767 EXPECT_EQ(0, runs[0].start); in TEST()
768 EXPECT_EQ(2, runs[0].end); in TEST()
769 EXPECT_EQ(kLatinFont, getFontName(runs[0])); in TEST()
771 runs = itemize(collection, "U+061C U+3042"); in TEST()
772 ASSERT_EQ(1U, runs.size()); in TEST()
773 EXPECT_EQ(0, runs[0].start); in TEST()
774 EXPECT_EQ(2, runs[0].end); in TEST()
775 EXPECT_EQ(kJAFont, getFontName(runs[0])); in TEST()
777 runs = itemize(collection, "U+061C"); in TEST()
778 ASSERT_EQ(1U, runs.size()); in TEST()
779 EXPECT_EQ(0, runs[0].start); in TEST()
780 EXPECT_EQ(1, runs[0].end); in TEST()
781 EXPECT_EQ(kLatinFont, getFontName(runs[0])); in TEST()
783 runs = itemize(collection, "U+061C U+061C U+061C"); in TEST()
784 ASSERT_EQ(1U, runs.size()); in TEST()
785 EXPECT_EQ(0, runs[0].start); in TEST()
786 EXPECT_EQ(3, runs[0].end); in TEST()
787 EXPECT_EQ(kLatinFont, getFontName(runs[0])); in TEST()
789 runs = itemize(collection, "U+200D U+20E3"); in TEST()
790 ASSERT_EQ(1U, runs.size()); in TEST()
791 EXPECT_EQ(0, runs[0].start); in TEST()
792 EXPECT_EQ(2, runs[0].end); in TEST()
793 EXPECT_EQ(kEmojiFont, getFontName(runs[0])); in TEST()
795 runs = itemize(collection, "U+200D"); in TEST()
796 ASSERT_EQ(1U, runs.size()); in TEST()
797 EXPECT_EQ(0, runs[0].start); in TEST()
798 EXPECT_EQ(1, runs[0].end); in TEST()
799 EXPECT_EQ(kLatinFont, getFontName(runs[0])); in TEST()
801 runs = itemize(collection, "U+20E3"); in TEST()
802 ASSERT_EQ(1U, runs.size()); in TEST()
803 EXPECT_EQ(0, runs[0].start); in TEST()
804 EXPECT_EQ(1, runs[0].end); in TEST()
805 EXPECT_EQ(kEmojiFont, getFontName(runs[0])); in TEST()
954 auto runs = itemize(collection, "U+9AA8", testCase.userPreferredLocale); in TEST() local
955 ASSERT_EQ(1U, runs.size()); in TEST()
956 ASSERT_NE(nullptr, runs[0].fakedFont.font); in TEST()
960 EXPECT_NE(firstFamilyMinikinFont.get(), runs[0].fakedFont.font->typeface().get()); in TEST()
963 const int usedLocaleIndex = fontLocaleIdxMap[runs[0].fakedFont.font->typeface().get()]; in TEST()
1270 auto runs = itemize(collection, testCase.testString.c_str(), testCase.requestedLocales); in TEST() local
1271 ASSERT_EQ(1U, runs.size()); in TEST()
1272 EXPECT_EQ(testCase.expectedFont, getFontName(runs[0])); in TEST()
1281 auto runs = itemize(collection, "U+00A9 U+FE0E"); in TEST() local
1282 ASSERT_EQ(1U, runs.size()); in TEST()
1283 EXPECT_EQ(0, runs[0].start); in TEST()
1284 EXPECT_EQ(2, runs[0].end); in TEST()
1285 EXPECT_EQ(kTextEmojiFont, getFontName(runs[0])); in TEST()
1289 runs = itemize(collection, "U+00AE U+FE0E"); in TEST()
1290 ASSERT_EQ(1U, runs.size()); in TEST()
1291 EXPECT_EQ(0, runs[0].start); in TEST()
1292 EXPECT_EQ(2, runs[0].end); in TEST()
1294 EXPECT_EQ(kColorEmojiFont, getFontName(runs[0])); in TEST()
1298 runs = itemize(collection, "U+203C U+FE0E"); in TEST()
1299 ASSERT_EQ(1U, runs.size()); in TEST()
1300 EXPECT_EQ(0, runs[0].start); in TEST()
1301 EXPECT_EQ(2, runs[0].end); in TEST()
1302 EXPECT_EQ(kTextEmojiFont, getFontName(runs[0])); in TEST()
1306 runs = itemize(collection, "U+2049 U+FE0E"); in TEST()
1307 ASSERT_EQ(1U, runs.size()); in TEST()
1308 EXPECT_EQ(0, runs[0].start); in TEST()
1309 EXPECT_EQ(2, runs[0].end); in TEST()
1310 EXPECT_EQ(kNoGlyphFont, getFontName(runs[0])); in TEST()
1314 runs = itemize(collection, "U+231A U+FE0E"); in TEST()
1315 ASSERT_EQ(1U, runs.size()); in TEST()
1316 EXPECT_EQ(0, runs[0].start); in TEST()
1317 EXPECT_EQ(2, runs[0].end); in TEST()
1318 EXPECT_EQ(kTextEmojiFont, getFontName(runs[0])); in TEST()
1322 runs = itemize(collection, "U+231B U+FE0E"); in TEST()
1323 ASSERT_EQ(1U, runs.size()); in TEST()
1324 EXPECT_EQ(0, runs[0].start); in TEST()
1325 EXPECT_EQ(2, runs[0].end); in TEST()
1327 EXPECT_EQ(kColorEmojiFont, getFontName(runs[0])); in TEST()
1332 runs = itemize(collection, "U+23E9 U+FE0E"); in TEST()
1333 ASSERT_EQ(1U, runs.size()); in TEST()
1334 EXPECT_EQ(0, runs[0].start); in TEST()
1335 EXPECT_EQ(2, runs[0].end); in TEST()
1336 EXPECT_EQ(kTextEmojiFont, getFontName(runs[0])); in TEST()
1340 runs = itemize(collection, "U+23EA U+FE0E"); in TEST()
1341 ASSERT_EQ(1U, runs.size()); in TEST()
1342 EXPECT_EQ(0, runs[0].start); in TEST()
1343 EXPECT_EQ(2, runs[0].end); in TEST()
1344 EXPECT_EQ(kNoGlyphFont, getFontName(runs[0])); in TEST()
1348 runs = itemize(collection, "U+26FA U+FE0E"); in TEST()
1349 ASSERT_EQ(1U, runs.size()); in TEST()
1350 EXPECT_EQ(0, runs[0].start); in TEST()
1351 EXPECT_EQ(2, runs[0].end); in TEST()
1352 EXPECT_EQ(kMixedEmojiFont, getFontName(runs[0])); in TEST()
1360 auto runs = itemize(collection, "U+00A9 U+FE0F"); in TEST() local
1361 ASSERT_EQ(1U, runs.size()); in TEST()
1362 EXPECT_EQ(0, runs[0].start); in TEST()
1363 EXPECT_EQ(2, runs[0].end); in TEST()
1365 EXPECT_EQ(kTextEmojiFont, getFontName(runs[0])); in TEST()
1369 runs = itemize(collection, "U+00AE U+FE0F"); in TEST()
1370 ASSERT_EQ(1U, runs.size()); in TEST()
1371 EXPECT_EQ(0, runs[0].start); in TEST()
1372 EXPECT_EQ(2, runs[0].end); in TEST()
1373 EXPECT_EQ(kColorEmojiFont, getFontName(runs[0])); in TEST()
1378 runs = itemize(collection, "U+203C U+FE0F"); in TEST()
1379 ASSERT_EQ(1U, runs.size()); in TEST()
1380 EXPECT_EQ(0, runs[0].start); in TEST()
1381 EXPECT_EQ(2, runs[0].end); in TEST()
1382 EXPECT_EQ(kColorEmojiFont, getFontName(runs[0])); in TEST()
1386 runs = itemize(collection, "U+2049 U+FE0F"); in TEST()
1387 ASSERT_EQ(1U, runs.size()); in TEST()
1388 EXPECT_EQ(0, runs[0].start); in TEST()
1389 EXPECT_EQ(2, runs[0].end); in TEST()
1390 EXPECT_EQ(kNoGlyphFont, getFontName(runs[0])); in TEST()
1394 runs = itemize(collection, "U+231A U+FE0F"); in TEST()
1395 ASSERT_EQ(1U, runs.size()); in TEST()
1396 EXPECT_EQ(0, runs[0].start); in TEST()
1397 EXPECT_EQ(2, runs[0].end); in TEST()
1399 EXPECT_EQ(kTextEmojiFont, getFontName(runs[0])); in TEST()
1403 runs = itemize(collection, "U+231B U+FE0F"); in TEST()
1404 ASSERT_EQ(1U, runs.size()); in TEST()
1405 EXPECT_EQ(0, runs[0].start); in TEST()
1406 EXPECT_EQ(2, runs[0].end); in TEST()
1407 EXPECT_EQ(kColorEmojiFont, getFontName(runs[0])); in TEST()
1411 runs = itemize(collection, "U+23E9 U+FE0F"); in TEST()
1412 ASSERT_EQ(1U, runs.size()); in TEST()
1413 EXPECT_EQ(0, runs[0].start); in TEST()
1414 EXPECT_EQ(2, runs[0].end); in TEST()
1415 EXPECT_EQ(kColorEmojiFont, getFontName(runs[0])); in TEST()
1419 runs = itemize(collection, "U+23EA U+FE0F"); in TEST()
1420 ASSERT_EQ(1U, runs.size()); in TEST()
1421 EXPECT_EQ(0, runs[0].start); in TEST()
1422 EXPECT_EQ(2, runs[0].end); in TEST()
1423 EXPECT_EQ(kNoGlyphFont, getFontName(runs[0])); in TEST()
1427 runs = itemize(collection, "U+26F9 U+FE0F"); in TEST()
1428 ASSERT_EQ(1U, runs.size()); in TEST()
1429 EXPECT_EQ(0, runs[0].start); in TEST()
1430 EXPECT_EQ(2, runs[0].end); in TEST()
1431 EXPECT_EQ(kMixedEmojiFont, getFontName(runs[0])); in TEST()
1438 auto runs = itemize(collection, "U+261D"); in TEST() local
1439 ASSERT_EQ(1U, runs.size()); in TEST()
1440 EXPECT_EQ(0, runs[0].start); in TEST()
1441 EXPECT_EQ(1, runs[0].end); in TEST()
1442 EXPECT_EQ(kTextEmojiFont, getFontName(runs[0])); in TEST()
1445 runs = itemize(collection, "U+261D U+1F3FD"); in TEST()
1446 ASSERT_EQ(1U, runs.size()); in TEST()
1447 EXPECT_EQ(0, runs[0].start); in TEST()
1448 EXPECT_EQ(3, runs[0].end); in TEST()
1449 EXPECT_EQ(kColorEmojiFont, getFontName(runs[0])); in TEST()
1452 runs = itemize(collection, "U+261D U+FE0F U+1F3FD"); in TEST()
1453 ASSERT_EQ(1U, runs.size()); in TEST()
1454 EXPECT_EQ(0, runs[0].start); in TEST()
1455 EXPECT_EQ(4, runs[0].end); in TEST()
1456 EXPECT_EQ(kColorEmojiFont, getFontName(runs[0])); in TEST()
1460 runs = itemize(collection, "U+261D U+FE0E U+1F3FD"); in TEST()
1461 ASSERT_EQ(2U, runs.size()); in TEST()
1462 EXPECT_EQ(0, runs[0].start); in TEST()
1463 EXPECT_EQ(2, runs[0].end); in TEST()
1464 EXPECT_EQ(kTextEmojiFont, getFontName(runs[0])); in TEST()
1465 EXPECT_EQ(2, runs[1].start); in TEST()
1466 EXPECT_EQ(4, runs[1].end); in TEST()
1467 EXPECT_EQ(kColorEmojiFont, getFontName(runs[1])); in TEST()
1474 auto runs = itemize(collection, "U+FEE10"); in TEST() local
1475 ASSERT_EQ(1U, runs.size()); in TEST()
1476 EXPECT_EQ(0, runs[0].start); in TEST()
1477 EXPECT_EQ(2, runs[0].end); in TEST()
1478 EXPECT_EQ(kNoGlyphFont, getFontName(runs[0])); in TEST()
1480 runs = itemize(collection, "U+FEE40 U+FE4C5"); in TEST()
1481 ASSERT_EQ(1U, runs.size()); in TEST()
1482 EXPECT_EQ(0, runs[0].start); in TEST()
1483 EXPECT_EQ(4, runs[0].end); in TEST()
1484 EXPECT_EQ(kNoGlyphFont, getFontName(runs[0])); in TEST()
1490 auto runs = itemize(collection, "U+1F469 U+200D U+1F373"); in TEST() local
1491 ASSERT_EQ(1U, runs.size()); in TEST()
1492 EXPECT_EQ(0, runs[0].start); in TEST()
1493 EXPECT_EQ(5, runs[0].end); in TEST()
1494 EXPECT_EQ(kColorEmojiFont, getFontName(runs[0])); in TEST()
1496 runs = itemize(collection, "U+1F469 U+200D U+2695 U+FE0F"); in TEST()
1497 ASSERT_EQ(1U, runs.size()); in TEST()
1498 EXPECT_EQ(0, runs[0].start); in TEST()
1499 EXPECT_EQ(5, runs[0].end); in TEST()
1500 EXPECT_EQ(kColorEmojiFont, getFontName(runs[0])); in TEST()
1502 runs = itemize(collection, "U+1F469 U+200D U+2695"); in TEST()
1503 ASSERT_EQ(1U, runs.size()); in TEST()
1504 EXPECT_EQ(0, runs[0].start); in TEST()
1505 EXPECT_EQ(4, runs[0].end); in TEST()
1506 EXPECT_EQ(kColorEmojiFont, getFontName(runs[0])); in TEST()
1523 auto runs = itemize(collection, "U+35A8 U+E0100"); in TEST() local
1524 EXPECT_EQ(familyA->getFont(0), runs[0].fakedFont.font); in TEST()
1526 runs = itemize(reversedCollection, "U+35A8 U+E0100"); in TEST()
1527 EXPECT_EQ(familyB->getFont(0), runs[0].fakedFont.font); in TEST()
1546 auto runs = itemize(collection, "U+5380 U+E0100"); in TEST() local
1547 EXPECT_EQ(hasCmapFormat14Family->getFont(0), runs[0].fakedFont.font); in TEST()
1549 runs = itemize(reversedCollection, "U+5380 U+E0100"); in TEST()
1550 EXPECT_EQ(noCmapFormat14Family->getFont(0), runs[0].fakedFont.font); in TEST()
1563 auto runs = itemize(collection, "U+203C", "en-US,en-Zsym"); in TEST() local
1564 EXPECT_EQ(textEmojiFamily->getFont(0), runs[0].fakedFont.font); in TEST()
1565 runs = itemize(collection, "U+23E9", "en-US,en-Zsym"); in TEST()
1566 EXPECT_EQ(textEmojiFamily->getFont(0), runs[0].fakedFont.font); in TEST()
1568 runs = itemize(collection, "U+203C", "en-US,en-Zsye"); in TEST()
1569 EXPECT_EQ(colorEmojiFamily->getFont(0), runs[0].fakedFont.font); in TEST()
1570 runs = itemize(collection, "U+23E9", "en-US,en-Zsye"); in TEST()
1571 EXPECT_EQ(colorEmojiFamily->getFont(0), runs[0].fakedFont.font); in TEST()
1573 runs = itemize(collection, "U+203C", "ja-Zsym-JP"); in TEST()
1574 EXPECT_EQ(textEmojiFamily->getFont(0), runs[0].fakedFont.font); in TEST()
1575 runs = itemize(collection, "U+23E9", "ja-Zsym-JP"); in TEST()
1576 EXPECT_EQ(textEmojiFamily->getFont(0), runs[0].fakedFont.font); in TEST()
1578 runs = itemize(collection, "U+203C", "ja-Zsye-JP"); in TEST()
1579 EXPECT_EQ(colorEmojiFamily->getFont(0), runs[0].fakedFont.font); in TEST()
1580 runs = itemize(collection, "U+23E9", "ja-Zsye-JP"); in TEST()
1581 EXPECT_EQ(colorEmojiFamily->getFont(0), runs[0].fakedFont.font); in TEST()
1583 runs = itemize(collection, "U+203C", "ja-JP-u-em-text"); in TEST()
1584 EXPECT_EQ(textEmojiFamily->getFont(0), runs[0].fakedFont.font); in TEST()
1585 runs = itemize(collection, "U+23E9", "ja-JP-u-em-text"); in TEST()
1586 EXPECT_EQ(textEmojiFamily->getFont(0), runs[0].fakedFont.font); in TEST()
1588 runs = itemize(collection, "U+203C", "ja-JP-u-em-emoji"); in TEST()
1589 EXPECT_EQ(colorEmojiFamily->getFont(0), runs[0].fakedFont.font); in TEST()
1590 runs = itemize(collection, "U+23E9", "ja-JP-u-em-emoji"); in TEST()
1591 EXPECT_EQ(colorEmojiFamily->getFont(0), runs[0].fakedFont.font); in TEST()
1593 runs = itemize(collection, "U+203C", "ja-JP,und-Zsym"); in TEST()
1594 EXPECT_EQ(textEmojiFamily->getFont(0), runs[0].fakedFont.font); in TEST()
1595 runs = itemize(collection, "U+23E9", "ja-JP,und-Zsym"); in TEST()
1596 EXPECT_EQ(textEmojiFamily->getFont(0), runs[0].fakedFont.font); in TEST()
1598 runs = itemize(collection, "U+203C", "ja-JP,und-Zsye"); in TEST()
1599 EXPECT_EQ(colorEmojiFamily->getFont(0), runs[0].fakedFont.font); in TEST()
1600 runs = itemize(collection, "U+23E9", "ja-JP,und-Zsye"); in TEST()
1601 EXPECT_EQ(colorEmojiFamily->getFont(0), runs[0].fakedFont.font); in TEST()
1614 auto runs = itemize(collection, "'a'", ""); in TEST() local
1615 EXPECT_EQ(customFallbackFamily->getFont(0), runs[0].fakedFont.font); in TEST()
1616 runs = itemize(collection, "'a'", "en-US"); in TEST()
1617 EXPECT_EQ(customFallbackFamily->getFont(0), runs[0].fakedFont.font); in TEST()
1618 runs = itemize(collection, "'a'", "ja-JP"); in TEST()
1619 EXPECT_EQ(customFallbackFamily->getFont(0), runs[0].fakedFont.font); in TEST()