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

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

Issue 2748003002: Revert "Remove U+180E from whitespace in js_runtime and tests" (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
« no previous file with comments | « tests/corelib_strong/string_trim2_test.dart ('k') | tests/lib/lib.status » ('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) 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.2).
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>
11 // 00A0 ; White_Space # Zs NO-BREAK SPACE 11 // 00A0 ; White_Space # Zs NO-BREAK SPACE
12 // 1680 ; White_Space # Zs OGHAM SPACE MARK 12 // 1680 ; White_Space # Zs OGHAM SPACE MARK
13 // 180E ; White_Space # Zs MONGOLIAN VOWEL SEPARATOR
13 // 2000..200A ; White_Space # Zs EN QUAD..HAIR SPACE 14 // 2000..200A ; White_Space # Zs EN QUAD..HAIR SPACE
14 // 2028 ; White_Space # Zl LINE SEPARATOR 15 // 2028 ; White_Space # Zl LINE SEPARATOR
15 // 2029 ; White_Space # Zp PARAGRAPH SEPARATOR 16 // 2029 ; White_Space # Zp PARAGRAPH SEPARATOR
16 // 202F ; White_Space # Zs NARROW NO-BREAK SPACE 17 // 202F ; White_Space # Zs NARROW NO-BREAK SPACE
17 // 205F ; White_Space # Zs MEDIUM MATHEMATICAL SPACE 18 // 205F ; White_Space # Zs MEDIUM MATHEMATICAL SPACE
18 // 3000 ; White_Space # Zs IDEOGRAPHIC SPACE 19 // 3000 ; White_Space # Zs IDEOGRAPHIC SPACE
19 // And BOM: 20 // And BOM:
20 // FEFF ; Byte order mark. 21 // FEFF ; Byte order mark.
21 const WHITESPACE = const [ 22 const WHITESPACE = const [
22 0x09, 23 0x09,
23 0x0A, 24 0x0A,
24 0x0B, 25 0x0B,
25 0x0C, 26 0x0C,
26 0x0D, 27 0x0D,
27 0x20, 28 0x20,
28 0x85, 29 0x85,
29 0xA0, 30 0xA0,
30 0x1680, 31 0x1680,
32 0x180E,
31 0x2000, 33 0x2000,
32 0x2001, 34 0x2001,
33 0x2002, 35 0x2002,
34 0x2003, 36 0x2003,
35 0x2004, 37 0x2004,
36 0x2005, 38 0x2005,
37 0x2006, 39 0x2006,
38 0x2007, 40 0x2007,
39 0x2008, 41 0x2008,
40 0x2009, 42 0x2009,
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 // This line makes string_trimlr_test/none fail but /01 succeede where 94 // This line makes string_trimlr_test/none fail but /01 succeede where
93 // this bug is in the JS. Both succeede on the VM and where the bug is 95 // this bug is in the JS. Both succeede on the VM and where the bug is
94 // not. Remove this line and comment if all JS engines fix it. 96 // not. Remove this line and comment if all JS engines fix it.
95 if (i == 0x200b) continue; /// 01: ok 97 if (i == 0x200b) continue; /// 01: ok
96 98
97 var s = new String.fromCharCode(i); 99 var s = new String.fromCharCode(i);
98 Expect.identical(s, s.trimLeft()); 100 Expect.identical(s, s.trimLeft());
99 Expect.identical(s, s.trimRight()); 101 Expect.identical(s, s.trimRight());
100 } 102 }
101 } 103 }
OLDNEW
« no previous file with comments | « tests/corelib_strong/string_trim2_test.dart ('k') | tests/lib/lib.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698