| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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.static_provider_test; | 5 library barback.test.static_provider_test; |
| 6 | 6 |
| 7 import 'package:scheduled_test/scheduled_test.dart'; | 7 import 'package:scheduled_test/scheduled_test.dart'; |
| 8 | 8 |
| 9 import 'utils.dart'; | 9 import 'utils.dart'; |
| 10 | 10 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 test("a transformer can see a static asset", () { | 24 test("a transformer can see a static asset", () { |
| 25 initStaticGraph({ | 25 initStaticGraph({ |
| 26 "static|b.inc": "b", | 26 "static|b.inc": "b", |
| 27 "app|a.txt": "static|b.inc" | 27 "app|a.txt": "static|b.inc" |
| 28 }, staticPackages: ["static"], transformers: { | 28 }, staticPackages: ["static"], transformers: { |
| 29 "app": [[new ManyToOneTransformer("txt")]] | 29 "app": [[new ManyToOneTransformer("txt")]] |
| 30 }); | 30 }); |
| 31 updateSources(["app|a.txt"]); | 31 updateSources(["app|a.txt"]); |
| 32 expectAsset("app|a.out", "b"); | 32 expectAsset("app|a.out", "b"); |
| 33 }); | 33 }); |
| 34 |
| 35 test("can list all static assets", () { |
| 36 initStaticGraph(["app|foo.txt", "app|bar.txt", "app|baz.txt"], |
| 37 staticPackages: ["app"]); |
| 38 expectAllAssets(["app|foo.txt", "app|bar.txt", "app|baz.txt"]); |
| 39 }); |
| 34 } | 40 } |
| OLD | NEW |