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

Side by Side Diff: tests/lib/i18n/bidi_format_test.dart

Issue 10692018: Add intl to apidoc, and some minor comment formatting cleanup. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « lib/i18n/intl_message.dart ('k') | tests/lib/i18n/bidi_utils_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/intl.dart');
9 #import('../../../lib/i18n/bidi_utils.dart');
10 #import('../../../lib/unittest/unittest.dart'); 9 #import('../../../lib/unittest/unittest.dart');
11 10
12 /** 11 /**
13 * Tests the bidirectional text formatting library. 12 * Tests the bidirectional text formatting library.
14 */ 13 */
15 main() { 14 main() {
16 var LRM = BidiUtils.LRM; 15 var LRM = BidiUtils.LRM;
17 var RLM = BidiUtils.RLM; 16 var RLM = BidiUtils.RLM;
18 var LRE = BidiUtils.LRE; 17 var LRE = BidiUtils.LRE;
19 var RLE = BidiUtils.RLE; 18 var RLE = BidiUtils.RLE;
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 expect(rtlFmt.wrapWithUnicode(he, direction : TextDirection.LTR), 207 expect(rtlFmt.wrapWithUnicode(he, direction : TextDirection.LTR),
209 equals('$LRE$he$PDF$RLM')); 208 equals('$LRE$he$PDF$RLM'));
210 // Test supposed overall dir (LTR) doesn't match context dir (unknown). 209 // Test supposed overall dir (LTR) doesn't match context dir (unknown).
211 expect(unkFmt.wrapWithUnicode(he, direction : TextDirection.LTR), 210 expect(unkFmt.wrapWithUnicode(he, direction : TextDirection.LTR),
212 equals('$LRE$he$PDF')); 211 equals('$LRE$he$PDF'));
213 // Test supposed overall dir (neutral) doesn't match context dir (LTR). 212 // Test supposed overall dir (neutral) doesn't match context dir (LTR).
214 expect(ltrFmt.wrapWithUnicode(he, direction : TextDirection.UNKNOWN), 213 expect(ltrFmt.wrapWithUnicode(he, direction : TextDirection.UNKNOWN),
215 equals('$he$LRM')); 214 equals('$he$LRM'));
216 }); 215 });
217 } 216 }
OLDNEW
« no previous file with comments | « lib/i18n/intl_message.dart ('k') | tests/lib/i18n/bidi_utils_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698