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