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

Side by Side Diff: tests/corelib_2/string_trimlr_test.dart

Issue 2983253002: Migrated test block 29 to Dart 2.0 (Closed)
Patch Set: Migrated test block 29 to Dart 2.0 Created 3 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
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 import "package:expect/expect.dart"; 5 import "package:expect/expect.dart";
6 6
7 // Characters with Whitespace property (Unicode 6.3). 7 // Characters with Whitespace property (Unicode 6.3).
8 // 0009..000D ; White_Space # Cc <control-0009>..<control-000D> 8 // 0009..000D ; White_Space # Cc <control-0009>..<control-000D>
9 // 0020 ; White_Space # Zs SPACE 9 // 0020 ; White_Space # Zs SPACE
10 // 0085 ; White_Space # Cc <control-0085> 10 // 0085 ; White_Space # Cc <control-0085>
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 var s200B = new String.fromCharCode(0x200B); 102 var s200B = new String.fromCharCode(0x200B);
103 Expect.identical(s200B, s200B.trimLeft()); // //# 01: ok 103 Expect.identical(s200B, s200B.trimLeft()); // //# 01: ok
104 Expect.identical(s200B, s200B.trimRight()); // //# 01: ok 104 Expect.identical(s200B, s200B.trimRight()); // //# 01: ok
105 105
106 // U+180E ceased to be whitespace in Unicode version 6.3.0 106 // U+180E ceased to be whitespace in Unicode version 6.3.0
107 // string_trimlr_test/02 fails on implementations using earlier versions. 107 // string_trimlr_test/02 fails on implementations using earlier versions.
108 var s180E = new String.fromCharCode(0x180E); 108 var s180E = new String.fromCharCode(0x180E);
109 Expect.identical(s180E, s180E.trimLeft()); // //# 02: ok 109 Expect.identical(s180E, s180E.trimLeft()); // //# 02: ok
110 Expect.identical(s180E, s180E.trimRight()); // //# 02: ok 110 Expect.identical(s180E, s180E.trimRight()); // //# 02: ok
111 } 111 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698