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

Unified Diff: pkg/barback/test/asset_graph/source_test.dart

Issue 5695057915019264: Make barback more package-aware. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Re-upload Created 7 years, 5 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/asset_graph/source_test.dart
diff --git a/pkg/barback/test/asset_graph/source_test.dart b/pkg/barback/test/asset_graph/source_test.dart
index 8227edbb2f3a27f26dcd5bbc2fa1f8367df2c280..8c31e35782918fbd4b8ffa936c86f80e1f112593 100644
--- a/pkg/barback/test/asset_graph/source_test.dart
+++ b/pkg/barback/test/asset_graph/source_test.dart
@@ -44,9 +44,9 @@ main() {
});
test("gets a source asset if not transformed", () {
- initGraph(["app|foo.txt"], [
+ initGraph(["app|foo.txt"], {"app": [
[new RewriteTransformer("nottxt", "whatever")]
- ]);
+ ]});
updateSources(["app|foo.txt"]);
expectAsset("app|foo.txt");
@@ -67,7 +67,7 @@ main() {
test("collapses redundant updates", () {
var transformer = new RewriteTransformer("blub", "blab");
- initGraph(["app|foo.blub"], [[transformer]]);
+ initGraph(["app|foo.blub"], {"app": [[transformer]]});
schedule(() {
// Make a bunch of synchronous update calls.
@@ -108,7 +108,7 @@ main() {
test("restarts a build if a source is updated while sources are loading", () {
var transformer = new RewriteTransformer("txt", "out");
- initGraph(["app|foo.txt", "app|other.bar"], [[transformer]]);
+ initGraph(["app|foo.txt", "app|other.bar"], {"app": [[transformer]]});
// Run the whole graph so all nodes are clean.
updateSources(["app|foo.txt", "app|other.bar"]);

Powered by Google App Engine
This is Rietveld 408576698