| OLD | NEW |
| 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 Loading... |
| 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 }); | |
| 473 } | 452 } |
| OLD | NEW |