| OLD | NEW |
| 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 library barback.test.asset_test; | 5 library barback.test.asset_test; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'dart:io'; | 8 import 'dart:io'; |
| 9 import 'dart:utf'; | 9 import 'dart:utf'; |
| 10 | 10 |
| 11 import 'package:barback/barback.dart'; | 11 import 'package:barback/barback.dart'; |
| 12 import 'package:pathos/path.dart' as pathos; | 12 import 'package:path/path.dart' as pathos; |
| 13 import 'package:unittest/unittest.dart'; | 13 import 'package:unittest/unittest.dart'; |
| 14 | 14 |
| 15 import 'utils.dart'; | 15 import 'utils.dart'; |
| 16 | 16 |
| 17 /// The contents of the test binary file. | 17 /// The contents of the test binary file. |
| 18 final binaryContents = [0, 1, 2, 3, 4]; | 18 final binaryContents = [0, 1, 2, 3, 4]; |
| 19 | 19 |
| 20 main() { | 20 main() { |
| 21 initConfig(); | 21 initConfig(); |
| 22 | 22 |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 }); | 171 }); |
| 172 | 172 |
| 173 group("file asset", () { | 173 group("file asset", () { |
| 174 test("shows the file path", () { | 174 test("shows the file path", () { |
| 175 var asset = new Asset.fromPath(id, "path.txt"); | 175 var asset = new Asset.fromPath(id, "path.txt"); |
| 176 expect(asset.toString(), equals('File "path.txt"')); | 176 expect(asset.toString(), equals('File "path.txt"')); |
| 177 }); | 177 }); |
| 178 }); | 178 }); |
| 179 }); | 179 }); |
| 180 } | 180 } |
| OLD | NEW |