| Index: pkg/barback/test/package_graph/errors_test.dart
|
| diff --git a/pkg/barback/test/package_graph/errors_test.dart b/pkg/barback/test/package_graph/errors_test.dart
|
| index 011f69f7a70ccc7ad9e70089af5a43b82ea6a612..02a7675d47d9d95e0ada223405bae4fae4e43ce2 100644
|
| --- a/pkg/barback/test/package_graph/errors_test.dart
|
| +++ b/pkg/barback/test/package_graph/errors_test.dart
|
| @@ -176,4 +176,22 @@ main() {
|
| expectAsset("app|foo.txt", "failed to load app|nothing");
|
| buildShouldSucceed();
|
| });
|
| +
|
| + test("a transformer that fails due to a missing secondary input is re-run "
|
| + "when that input appears", () {
|
| + initGraph({
|
| + "app|foo.txt": "bar.inc",
|
| + "app|bar.inc": "bar"
|
| + }, {"app": [
|
| + [new ManyToOneTransformer("txt")]
|
| + ]});
|
| +
|
| + updateSources(["app|foo.txt"]);
|
| + expectNoAsset("app|foo.out");
|
| + buildShouldFail([isMissingInputException("app|bar.inc")]);
|
| +
|
| + updateSources(["app|bar.inc"]);
|
| + expectAsset("app|foo.out", "bar");
|
| + buildShouldSucceed();
|
| + });
|
| }
|
|
|