| 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_set_test; | 5 library barback.test.asset_set_test; |
| 6 | 6 |
| 7 import 'package:barback/barback.dart'; | 7 import 'package:barback/barback.dart'; |
| 8 import 'package:barback/src/asset_set.dart'; | |
| 9 import 'package:unittest/unittest.dart'; | 8 import 'package:unittest/unittest.dart'; |
| 10 | 9 |
| 11 import 'utils.dart'; | 10 import 'utils.dart'; |
| 12 | 11 |
| 13 main() { | 12 main() { |
| 14 initConfig(); | 13 initConfig(); |
| 15 | 14 |
| 16 var fooId = new AssetId.parse("app|foo.txt"); | 15 var fooId = new AssetId.parse("app|foo.txt"); |
| 17 var barId = new AssetId.parse("app|bar.txt"); | 16 var barId = new AssetId.parse("app|bar.txt"); |
| 18 var bazId = new AssetId.parse("app|baz.txt"); | 17 var bazId = new AssetId.parse("app|baz.txt"); |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 | 140 |
| 142 test("returns null when removing an asset not in the set", () { | 141 test("returns null when removing an asset not in the set", () { |
| 143 var set = new AssetSet(); | 142 var set = new AssetSet(); |
| 144 var foo = new Asset.fromString(fooId, "foo"); | 143 var foo = new Asset.fromString(fooId, "foo"); |
| 145 set.add(foo); | 144 set.add(foo); |
| 146 | 145 |
| 147 expect(set.removeId(barId), isNull); | 146 expect(set.removeId(barId), isNull); |
| 148 }); | 147 }); |
| 149 }); | 148 }); |
| 150 } | 149 } |
| OLD | NEW |