Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(73)

Side by Side Diff: pkg/barback/test/asset_set_test.dart

Issue 22824023: Start sketching out a buildAll() method. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Revise. Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « pkg/barback/lib/src/phase.dart ('k') | pkg/barback/test/package_graph/get_all_assets_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « pkg/barback/lib/src/phase.dart ('k') | pkg/barback/test/package_graph/get_all_assets_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698