| 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 } | 85 } |
| 84 if (w > weight) { | 86 if (w > weight) { |
| 85 weight = w; | 87 weight = w; |
| 86 encoding = e; | 88 encoding = e; |
| 87 } | 89 } |
| 88 } | 90 } |
| 89 } | 91 } |
| 90 } | 92 } |
| 91 return encoding; | 93 return encoding; |
| 92 } | 94 } |
| OLD | NEW |