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

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

Issue 183993003: Revert commits r33138, r33135, and r33134. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 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') | pkg/barback/test/package_graph/group_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/barback/test/package_graph/get_all_assets_test.dart
diff --git a/pkg/barback/test/package_graph/get_all_assets_test.dart b/pkg/barback/test/package_graph/get_all_assets_test.dart
index 7cadbdfb17b61b6d67340de4278bd4a0a240863b..0ece84baa09579cd02c26d3f1dab37f9620e8d9d 100644
--- a/pkg/barback/test/package_graph/get_all_assets_test.dart
+++ b/pkg/barback/test/package_graph/get_all_assets_test.dart
@@ -18,24 +18,24 @@ main() {
buildShouldSucceed();
});
- test("includes transformed outputs", () {
+ test("includes transformed outputs, but not consumed ones", () {
initGraph(["app|a.txt", "app|foo.blub"], {"app": [
[new RewriteTransformer("blub", "blab")]
]});
updateSources(["app|a.txt", "app|foo.blub"]);
- expectAllAssets(["app|a.txt", "app|foo.blub", "app|foo.blab"]);
+ expectAllAssets(["app|a.txt", "app|foo.blab"]);
buildShouldSucceed();
});
- test("includes overwritten outputs", () {
- initGraph(["app|a.txt", "app|foo.blub"], {"app": [
- [new RewriteTransformer("blub", "blub")]
- ]});
- updateSources(["app|a.txt", "app|foo.blub"]);
- expectAllAssets({
- "app|a.txt": "a",
- "app|foo.blub": "foo.blub"
- });
+ test("includes non-primary inputs to transformers", () {
+ var transformer = new ManyToOneTransformer("txt");
+ initGraph({
+ "app|a.txt": "a.inc",
+ "app|a.inc": "a"
+ }, {"app": [[transformer]]});
+
+ updateSources(["app|a.txt", "app|a.inc"]);
+ expectAllAssets(["app|a.inc", "app|a.out"]);
buildShouldSucceed();
});
« no previous file with comments | « pkg/barback/test/package_graph/errors_test.dart ('k') | pkg/barback/test/package_graph/group_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698