| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "platform/fonts/shaping/RunSegmenter.h" | 5 #include "platform/fonts/shaping/RunSegmenter.h" |
| 6 | 6 |
| 7 #include "platform/Logging.h" | 7 #include "platform/Logging.h" |
| 8 #include "platform/fonts/OrientationIterator.h" | 8 #include "platform/fonts/OrientationIterator.h" |
| 9 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
| 10 #include "wtf/Assertions.h" | 10 #include "wtf/Assertions.h" |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 TEST_F(RunSegmenterTest, JapaneseSmallCaps) | 203 TEST_F(RunSegmenterTest, JapaneseSmallCaps) |
| 204 { | 204 { |
| 205 CHECK_RUNS_MIXED_SMALLCAPS({ | 205 CHECK_RUNS_MIXED_SMALLCAPS({ |
| 206 { "いろは", USCRIPT_HIRAGANA, OrientationIterator::OrientationKeep, SmallCa
psIterator::SmallCapsSameCase, FontFallbackPriority::Text }, | 206 { "いろは", USCRIPT_HIRAGANA, OrientationIterator::OrientationKeep, SmallCa
psIterator::SmallCapsSameCase, FontFallbackPriority::Text }, |
| 207 { "aa", USCRIPT_LATIN, OrientationIterator::OrientationRotateSideways, S
mallCapsIterator::SmallCapsUppercaseNeeded, FontFallbackPriority::Text }, | 207 { "aa", USCRIPT_LATIN, OrientationIterator::OrientationRotateSideways, S
mallCapsIterator::SmallCapsUppercaseNeeded, FontFallbackPriority::Text }, |
| 208 { "AA", USCRIPT_LATIN, OrientationIterator::OrientationRotateSideways, S
mallCapsIterator::SmallCapsSameCase, FontFallbackPriority::Text }, | 208 { "AA", USCRIPT_LATIN, OrientationIterator::OrientationRotateSideways, S
mallCapsIterator::SmallCapsSameCase, FontFallbackPriority::Text }, |
| 209 { "いろは", USCRIPT_HIRAGANA, OrientationIterator::OrientationKeep, SmallCa
psIterator::SmallCapsSameCase, FontFallbackPriority::Text }, | 209 { "いろは", USCRIPT_HIRAGANA, OrientationIterator::OrientationKeep, SmallCa
psIterator::SmallCapsSameCase, FontFallbackPriority::Text }, |
| 210 }); | 210 }); |
| 211 } | 211 } |
| 212 | 212 |
| 213 TEST_F(RunSegmenterTest, DingbatsMiscSymbolsModifier) |
| 214 { |
| 215 CHECK_RUNS_HORIZONTAL_NORMAL({ { "⛹🏻✍🏻✊🏼", USCRIPT_UNKNOWN, OrientationItera
tor::OrientationKeep, SmallCapsIterator::SmallCapsSameCase, FontFallbackPriority
::EmojiEmoji } }); |
| 216 } |
| 217 |
| 218 |
| 213 TEST_F(RunSegmenterTest, ArmenianCyrillicSmallCaps) | 219 TEST_F(RunSegmenterTest, ArmenianCyrillicSmallCaps) |
| 214 { | 220 { |
| 215 CHECK_RUNS_HORIZONTAL_SMALLCAPS({ { "աբգ", USCRIPT_ARMENIAN, OrientationIter
ator::OrientationKeep, SmallCapsIterator::SmallCapsUppercaseNeeded, FontFallback
Priority::Text }, | 221 CHECK_RUNS_HORIZONTAL_SMALLCAPS({ { "աբգ", USCRIPT_ARMENIAN, OrientationIter
ator::OrientationKeep, SmallCapsIterator::SmallCapsUppercaseNeeded, FontFallback
Priority::Text }, |
| 216 { "αβγ", USCRIPT_GREEK, OrientationIterator::OrientationKeep, SmallCapsI
terator::SmallCapsUppercaseNeeded, FontFallbackPriority::Text }, | 222 { "αβγ", USCRIPT_GREEK, OrientationIterator::OrientationKeep, SmallCapsI
terator::SmallCapsUppercaseNeeded, FontFallbackPriority::Text }, |
| 217 { "ԱԲԳ", USCRIPT_ARMENIAN, OrientationIterator::OrientationKeep, SmallCa
psIterator::SmallCapsSameCase, FontFallbackPriority::Text } }); | 223 { "ԱԲԳ", USCRIPT_ARMENIAN, OrientationIterator::OrientationKeep, SmallCa
psIterator::SmallCapsSameCase, FontFallbackPriority::Text } }); |
| 218 } | 224 } |
| 219 | 225 |
| 220 | 226 |
| 221 | 227 |
| 222 } // namespace blink | 228 } // namespace blink |
| OLD | NEW |