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

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

Issue 2765893003: Fix warnings_checker.dart handling of multitests (Closed)
Patch Set: Created 3 years, 9 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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 93
94 var s = new String.fromCharCode(i); 94 var s = new String.fromCharCode(i);
95 Expect.identical(s, s.trimLeft()); 95 Expect.identical(s, s.trimLeft());
96 Expect.identical(s, s.trimRight()); 96 Expect.identical(s, s.trimRight());
97 } 97 }
98 98
99 // U+200b is currently being treated as whitespace by some JS engines. 99 // U+200b is currently being treated as whitespace by some JS engines.
100 // string_trimlr_test/01 fails on these engines. 100 // string_trimlr_test/01 fails on these engines.
101 // Should be fixed in tip-of-tree V8 per 2014-02-10. 101 // Should be fixed in tip-of-tree V8 per 2014-02-10.
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
« no previous file with comments | « tests/corelib/string_from_environment3_test.dart ('k') | tests/corelib/symbol_operator_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698