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

Unified Diff: pkg/barback/test/package_graph/transform/transform_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
« no previous file with comments | « pkg/barback/test/package_graph/errors_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/barback/test/package_graph/transform/transform_test.dart
diff --git a/pkg/barback/test/package_graph/transform/transform_test.dart b/pkg/barback/test/package_graph/transform/transform_test.dart
index 8cc9085cc274661b5459f920c2d2de7f6a458ff8..dce5e2cd15586ea2cc38cdca8b26b81f232b88ec 100644
--- a/pkg/barback/test/package_graph/transform/transform_test.dart
+++ b/pkg/barback/test/package_graph/transform/transform_test.dart
@@ -368,19 +368,18 @@ main() {
buildShouldSucceed();
});
- // TODO(nweiz): enable this when issue 17480 is fixed.
- // test("re-runs the transformer when an input starts existing", () {
- // initGraph(["app|foo.txt", "app|bar.txt"], {'app': [
- // [new HasInputTransformer(['app|bar.txt'])]
- // ]});
- //
- // updateSources(['app|foo.txt']);
- // expectAsset('app|foo.txt', 'app|bar.txt: false');
- // buildShouldSucceed();
- //
- // updateSources(['app|bar.txt']);
- // expectAsset('app|foo.txt', 'app|bar.txt: true');
- // buildShouldSucceed();
- // });
+ test("re-runs the transformer when an input starts existing", () {
+ initGraph(["app|foo.txt", "app|bar.txt"], {'app': [
+ [new HasInputTransformer(['app|bar.txt'])]
+ ]});
+
+ updateSources(['app|foo.txt']);
+ expectAsset('app|foo.txt', 'app|bar.txt: false');
+ buildShouldSucceed();
+
+ updateSources(['app|bar.txt']);
+ expectAsset('app|foo.txt', 'app|bar.txt: true');
+ buildShouldSucceed();
+ });
});
}
« no previous file with comments | « pkg/barback/test/package_graph/errors_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698