Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(689)

Unified Diff: third_party/WebKit/Source/platform/fonts/shaping/CachingWordShaperTest.cpp

Issue 1805673004: Include U+FE50-FE6F in isCJKIdeographOrSymbol() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix test Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/platform/fonts/CharacterTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/fonts/shaping/CachingWordShaperTest.cpp
diff --git a/third_party/WebKit/Source/platform/fonts/shaping/CachingWordShaperTest.cpp b/third_party/WebKit/Source/platform/fonts/shaping/CachingWordShaperTest.cpp
index cac30b86b0e0fdbc292324a7700fc47461e668d6..c3522a407610fc9040481fb4e1f0aefa1ea86e27 100644
--- a/third_party/WebKit/Source/platform/fonts/shaping/CachingWordShaperTest.cpp
+++ b/third_party/WebKit/Source/platform/fonts/shaping/CachingWordShaperTest.cpp
@@ -445,6 +445,24 @@ TEST_F(CachingWordShaperTest, SegmentCJKCommonAndNonCJK)
ASSERT_FALSE(iterator.next(&wordResult));
}
+TEST_F(CachingWordShaperTest, SegmentCJKSmallFormVariants)
+{
+ const UChar str[] = {
+ 0x5916, // CJK UNIFIED IDEOGRPAH
+ 0xFE50, // SMALL COMMA
+ 0x0
+ };
+ TextRun textRun(str, 2);
+
+ RefPtr<ShapeResult> wordResult;
+ CachingWordShapeIterator iterator(cache.get(), textRun, &font);
+
+ ASSERT_TRUE(iterator.next(&wordResult));
+ EXPECT_EQ(2u, wordResult->numCharacters());
+
+ ASSERT_FALSE(iterator.next(&wordResult));
+}
+
TEST_F(CachingWordShaperTest, TextOrientationFallbackShouldNotInFallbackList)
{
const UChar str[] = {
« no previous file with comments | « third_party/WebKit/Source/platform/fonts/CharacterTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698