OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 @TestOn("vm"); |
| 6 |
5 import "dart:async"; | 7 import "dart:async"; |
6 import "dart:convert"; | 8 import "dart:convert"; |
7 import "dart:io"; | 9 import "dart:io"; |
8 | 10 |
9 import "package:resource/resource.dart"; | 11 import "package:resource/resource.dart"; |
10 import "package:test/test.dart"; | 12 import "package:test/test.dart"; |
11 | 13 |
12 const content = "Rødgrød med fløde"; | 14 const content = "Rødgrød med fløde"; |
13 | 15 |
14 main() { | 16 main() { |
(...skipping 27 matching lines...) Expand all Loading... |
42 await bytes.forEach(buffer.addAll); | 44 await bytes.forEach(buffer.addAll); |
43 expect(buffer, encoding.encode(content)); | 45 expect(buffer, encoding.encode(content)); |
44 }); | 46 }); |
45 }); | 47 }); |
46 } | 48 } |
47 testFile(LATIN1, true); | 49 testFile(LATIN1, true); |
48 testFile(LATIN1, false); | 50 testFile(LATIN1, false); |
49 testFile(UTF8, true); | 51 testFile(UTF8, true); |
50 testFile(UTF8, false); | 52 testFile(UTF8, false); |
51 } | 53 } |
OLD | NEW |