| 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/SymbolsIterator.h" | 5 #include "platform/fonts/SymbolsIterator.h" |
| 6 | 6 |
| 7 #include "platform/Logging.h" | 7 #include "platform/Logging.h" |
| 8 #include "testing/gtest/include/gtest/gtest.h" | 8 #include "testing/gtest/include/gtest/gtest.h" |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 TEST_F(SymbolsIteratorTest, EyeSpeechBubble) | 168 TEST_F(SymbolsIteratorTest, EyeSpeechBubble) |
| 169 { | 169 { |
| 170 CHECK_RUNS({ { "πβπ¨", FontFallbackPriority::EmojiEmoji } }); | 170 CHECK_RUNS({ { "πβπ¨", FontFallbackPriority::EmojiEmoji } }); |
| 171 } | 171 } |
| 172 | 172 |
| 173 TEST_F(SymbolsIteratorTest, Modifier) | 173 TEST_F(SymbolsIteratorTest, Modifier) |
| 174 { | 174 { |
| 175 CHECK_RUNS({ { "πΆπΏ", FontFallbackPriority::EmojiEmoji } }); | 175 CHECK_RUNS({ { "πΆπΏ", FontFallbackPriority::EmojiEmoji } }); |
| 176 } | 176 } |
| 177 | 177 |
| 178 TEST_F(SymbolsIteratorTest, DingbatsMiscSymbolsModifier) |
| 179 { |
| 180 CHECK_RUNS({ { "βΉπ»βπ»βπΌ", FontFallbackPriority::EmojiEmoji } }); |
| 181 } |
| 182 |
| 178 TEST_F(SymbolsIteratorTest, ExtraZWJPrefix) | 183 TEST_F(SymbolsIteratorTest, ExtraZWJPrefix) |
| 179 { | 184 { |
| 180 CHECK_RUNS({ { "\xE2\x80\x8D", FontFallbackPriority::Text }, | 185 CHECK_RUNS({ { "\xE2\x80\x8D", FontFallbackPriority::Text }, |
| 181 { "\xF0\x9F\x91\xA9\xE2\x80\x8D\xE2" | 186 { "\xF0\x9F\x91\xA9\xE2\x80\x8D\xE2" |
| 182 "\x9D\xA4\xEF\xB8\x8F\xE2\x80\x8D" | 187 "\x9D\xA4\xEF\xB8\x8F\xE2\x80\x8D" |
| 183 "\xF0\x9F\x92\x8B\xE2\x80\x8D\xF0\x9F\x91\xA8", | 188 "\xF0\x9F\x92\x8B\xE2\x80\x8D\xF0\x9F\x91\xA8", |
| 184 FontFallbackPriority::EmojiEmoji } }); | 189 FontFallbackPriority::EmojiEmoji } }); |
| 185 } | 190 } |
| 186 | 191 |
| 187 TEST_F(SymbolsIteratorTest, Arrows) | 192 TEST_F(SymbolsIteratorTest, Arrows) |
| 188 { | 193 { |
| 189 CHECK_RUNS({ { "x", FontFallbackPriority::Text }, | 194 CHECK_RUNS({ { "x", FontFallbackPriority::Text }, |
| 190 { "ββ", FontFallbackPriority::Math }, | 195 { "ββ", FontFallbackPriority::Math }, |
| 191 { "x", FontFallbackPriority::Text }, | 196 { "x", FontFallbackPriority::Text }, |
| 192 { "ββββ", FontFallbackPriority::Math } }); | 197 { "ββββ", FontFallbackPriority::Math } }); |
| 193 } | 198 } |
| 194 | 199 |
| 195 } // namespace blink | 200 } // namespace blink |
| OLD | NEW |