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

Side by Side Diff: pkg/barback/test/package_graph/group_test.dart

Issue 281383004: Fix a bug when loading secondary assets in barback. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « pkg/barback/pubspec.yaml ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library barback.test.package_graph.group_test; 5 library barback.test.package_graph.group_test;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import 'package:barback/barback.dart'; 9 import 'package:barback/barback.dart';
10 import 'package:scheduled_test/scheduled_test.dart'; 10 import 'package:scheduled_test/scheduled_test.dart';
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after
442 initGraph(["app|foo.a", "app|foo.x"], {"app": [[ 442 initGraph(["app|foo.a", "app|foo.x"], {"app": [[
443 new TransformerGroup([ 443 new TransformerGroup([
444 [new RewriteTransformer("a", "b")], 444 [new RewriteTransformer("a", "b")],
445 [new RewriteTransformer("b", "c")] 445 [new RewriteTransformer("b", "c")]
446 ]), 446 ]),
447 new RewriteTransformer("x", "c") 447 new RewriteTransformer("x", "c")
448 ]]}); 448 ]]});
449 updateSources(["app|foo.a", "app|foo.x"]); 449 updateSources(["app|foo.a", "app|foo.x"]);
450 buildShouldFail([isAssetCollisionException("app|foo.c")]); 450 buildShouldFail([isAssetCollisionException("app|foo.c")]);
451 }); 451 });
452
453 // Regression test for issue 18872.
454 test("a multi-phase group's outputs should be visible as secondary inputs "
455 "for a following group", () {
456 initGraph({
457 "app|foo.txt": "bar.c",
458 "app|bar.a": "bar"
459 }, {"app": [
460 [new TransformerGroup([
461 [new RewriteTransformer("a", "b")],
462 [new RewriteTransformer("b", "c")]
463 ])],
464 [new TransformerGroup([
465 [new ManyToOneTransformer("txt")]
466 ])]
467 ]});
468
469 updateSources(["app|foo.txt", "app|bar.a"]);
470 expectAsset("app|foo.out", "bar.b.c");
471 buildShouldSucceed();
472 });
452 } 473 }
OLDNEW
« no previous file with comments | « pkg/barback/pubspec.yaml ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698