| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 | 5 |
| 6 #library('bidi_format_test'); | 6 #library('bidi_format_test'); |
| 7 | 7 |
| 8 #import('../../../lib/i18n/bidi_formatter.dart'); | 8 #import('../../../lib/i18n/bidi_formatter.dart'); |
| 9 #import('../../../lib/i18n/bidi_utils.dart'); | 9 #import('../../../lib/i18n/bidi_utils.dart'); |
| 10 #import('../../../lib/unittest/unittest.dart'); | 10 #import('../../../lib/unittest/unittest.dart'); |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 expect(rtlFmt.wrapWithUnicode(he, direction : TextDirection.LTR), | 208 expect(rtlFmt.wrapWithUnicode(he, direction : TextDirection.LTR), |
| 209 equals('$LRE$he$PDF$RLM')); | 209 equals('$LRE$he$PDF$RLM')); |
| 210 // Test supposed overall dir (LTR) doesn't match context dir (unknown). | 210 // Test supposed overall dir (LTR) doesn't match context dir (unknown). |
| 211 expect(unkFmt.wrapWithUnicode(he, direction : TextDirection.LTR), | 211 expect(unkFmt.wrapWithUnicode(he, direction : TextDirection.LTR), |
| 212 equals('$LRE$he$PDF')); | 212 equals('$LRE$he$PDF')); |
| 213 // Test supposed overall dir (neutral) doesn't match context dir (LTR). | 213 // Test supposed overall dir (neutral) doesn't match context dir (LTR). |
| 214 expect(ltrFmt.wrapWithUnicode(he, direction : TextDirection.UNKNOWN), | 214 expect(ltrFmt.wrapWithUnicode(he, direction : TextDirection.UNKNOWN), |
| 215 equals('$he$LRM')); | 215 equals('$he$LRM')); |
| 216 }); | 216 }); |
| 217 } | 217 } |
| OLD | NEW |