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