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 import "package:expect/expect.dart"; | |
6 import "dart:async"; | 5 import "dart:async"; |
7 import "dart:io"; | 6 import "dart:io"; |
8 import "dart:isolate"; | 7 import "dart:isolate"; |
9 import "dart:utf"; | 8 import "dart:utf"; |
10 | 9 |
11 void testUtf8() { | 10 void testUtf8() { |
12 List<int> data = [0x01, | 11 List<int> data = [0x01, |
13 0x7f, | 12 0x7f, |
14 0xc2, 0x80, | 13 0xc2, 0x80, |
15 0xdf, 0xbf, | 14 0xdf, 0xbf, |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 | 228 |
230 main() { | 229 main() { |
231 testUtf8(); | 230 testUtf8(); |
232 testLatin1(); | 231 testLatin1(); |
233 testAscii(); | 232 testAscii(); |
234 testReadLine1(); | 233 testReadLine1(); |
235 testReadLine2(); | 234 testReadLine2(); |
236 testErrorHandler(); | 235 testErrorHandler(); |
237 testLatin1EncoderError(); | 236 testLatin1EncoderError(); |
238 } | 237 } |
OLD | NEW |