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/OrientationIterator.h" | 5 #include "platform/fonts/OrientationIterator.h" |
6 | 6 |
7 #include "testing/gtest/include/gtest/gtest.h" | 7 #include "testing/gtest/include/gtest/gtest.h" |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 namespace blink { | 10 namespace blink { |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 TEST_F(OrientationIteratorTest, OneCharLatin) | 76 TEST_F(OrientationIteratorTest, OneCharLatin) |
77 { | 77 { |
78 CHECK_RUNS({ { "A", OrientationIterator::OrientationRotateSideways } }); | 78 CHECK_RUNS({ { "A", OrientationIterator::OrientationRotateSideways } }); |
79 } | 79 } |
80 | 80 |
81 TEST_F(OrientationIteratorTest, OneAceOfSpades) | 81 TEST_F(OrientationIteratorTest, OneAceOfSpades) |
82 { | 82 { |
83 CHECK_RUNS({ { "π‘", OrientationIterator::OrientationKeep } }); | 83 CHECK_RUNS({ { "π‘", OrientationIterator::OrientationKeep } }); |
84 } | 84 } |
85 | 85 |
| 86 TEST_F(OrientationIteratorTest, CombiningCircle) |
| 87 { |
| 88 CHECK_RUNS({ { "βΜβΜβΜβΜβΜβΜ", OrientationIterator::OrientationKeep } }); |
| 89 } |
| 90 |
86 TEST_F(OrientationIteratorTest, OneEthiopicSyllable) | 91 TEST_F(OrientationIteratorTest, OneEthiopicSyllable) |
87 { | 92 { |
88 CHECK_RUNS({ { "α", OrientationIterator::OrientationRotateSideways } }); | 93 CHECK_RUNS({ { "α", OrientationIterator::OrientationRotateSideways } }); |
89 } | 94 } |
90 | 95 |
91 TEST_F(OrientationIteratorTest, JapaneseLetterlikeEnd) | 96 TEST_F(OrientationIteratorTest, JapaneseLetterlikeEnd) |
92 { | 97 { |
93 CHECK_RUNS({ { "γγγ―", OrientationIterator::OrientationKeep }, | 98 CHECK_RUNS({ { "γγγ―", OrientationIterator::OrientationKeep }, |
94 { "ββββββββββββββ", OrientationIterator::OrientationRotateSideways } }); | 99 { "ββββββββββββββ", OrientationIterator::OrientationRotateSideways } }); |
95 } | 100 } |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 { "γ»γΈγ¨", OrientationIterator::OrientationKeep }, | 171 { "γ»γΈγ¨", OrientationIterator::OrientationKeep }, |
167 { "Xyz", OrientationIterator::OrientationRotateSideways } }); | 172 { "Xyz", OrientationIterator::OrientationRotateSideways } }); |
168 } | 173 } |
169 | 174 |
170 TEST_F(OrientationIteratorTest, JapaneseMahjonggMixed) | 175 TEST_F(OrientationIteratorTest, JapaneseMahjonggMixed) |
171 { | 176 { |
172 CHECK_RUNS({ { "γγγ―γ«π€γ»γΈγ¨", OrientationIterator::OrientationKeep } }); | 177 CHECK_RUNS({ { "γγγ―γ«π€γ»γΈγ¨", OrientationIterator::OrientationKeep } }); |
173 } | 178 } |
174 | 179 |
175 } // namespace blink | 180 } // namespace blink |
OLD | NEW |