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

Unified Diff: pkg/barback/test/package_graph/errors_test.dart

Issue 200983002: Re-run a transform when a secondary input starts existing. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: code review Created 6 years, 9 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 side-by-side diff with in-line comments
Download patch
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();
+ });
}
« no previous file with comments | « pkg/barback/lib/src/transform_node.dart ('k') | pkg/barback/test/package_graph/transform/transform_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698