| 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_id_test; | 5 library barback.test.asset_id_test; |
| 6 | 6 |
| 7 import 'dart:async'; | |
| 8 | |
| 9 import 'package:barback/barback.dart'; | 7 import 'package:barback/barback.dart'; |
| 10 import 'package:unittest/unittest.dart'; | 8 import 'package:unittest/unittest.dart'; |
| 11 | 9 |
| 12 import 'utils.dart'; | 10 import 'utils.dart'; |
| 13 | 11 |
| 14 main() { | 12 main() { |
| 15 initConfig(); | 13 initConfig(); |
| 16 group("parse", () { | 14 group("parse", () { |
| 17 test("parses the package and path", () { | 15 test("parses the package and path", () { |
| 18 var id = new AssetId.parse("package|path/to/asset.txt"); | 16 var id = new AssetId.parse("package|path/to/asset.txt"); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 37 expect(new AssetId.parse("foo|asset.txt"), equals( | 35 expect(new AssetId.parse("foo|asset.txt"), equals( |
| 38 new AssetId.parse("foo|asset.txt"))); | 36 new AssetId.parse("foo|asset.txt"))); |
| 39 | 37 |
| 40 expect(new AssetId.parse("foo|asset.txt"), isNot(equals( | 38 expect(new AssetId.parse("foo|asset.txt"), isNot(equals( |
| 41 new AssetId.parse("bar|asset.txt")))); | 39 new AssetId.parse("bar|asset.txt")))); |
| 42 | 40 |
| 43 expect(new AssetId.parse("foo|asset.txt"), isNot(equals( | 41 expect(new AssetId.parse("foo|asset.txt"), isNot(equals( |
| 44 new AssetId.parse("bar|other.txt")))); | 42 new AssetId.parse("bar|other.txt")))); |
| 45 }); | 43 }); |
| 46 } | 44 } |
| OLD | NEW |