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

Unified Diff: packages/barback/test/package_graph/transform/cross_package_test.dart

Issue 3015713002: Roll to pickup pool changes
Patch Set: Created 3 years, 3 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: packages/barback/test/package_graph/transform/cross_package_test.dart
diff --git a/packages/barback/test/package_graph/transform/cross_package_test.dart b/packages/barback/test/package_graph/transform/cross_package_test.dart
index b499604680d968d767eb3ad36e6d30af09b0a8c6..f91c897f599275e2a102d090588df8c3b6cc1e81 100644
--- a/packages/barback/test/package_graph/transform/cross_package_test.dart
+++ b/packages/barback/test/package_graph/transform/cross_package_test.dart
@@ -4,7 +4,6 @@
library barback.test.package_graph.transform.pass_through_test;
-import 'package:barback/src/utils.dart';
import 'package:scheduled_test/scheduled_test.dart';
import '../../utils.dart';
@@ -15,7 +14,11 @@ main() {
initGraph({
"pkg1|a.txt": "pkg2|a.inc",
"pkg2|a.inc": "a"
- }, {"pkg1": [[new ManyToOneTransformer("txt")]]});
+ }, {
+ "pkg1": [
+ [new ManyToOneTransformer("txt")]
+ ]
+ });
updateSources(["pkg1|a.txt", "pkg2|a.inc"]);
expectAsset("pkg1|a.out", "a");
@@ -27,8 +30,12 @@ main() {
"pkg1|a.txt": "pkg2|a.inc",
"pkg2|a.txt": "a"
}, {
- "pkg1": [[new ManyToOneTransformer("txt")]],
- "pkg2": [[new RewriteTransformer("txt", "inc")]]
+ "pkg1": [
+ [new ManyToOneTransformer("txt")]
+ ],
+ "pkg2": [
+ [new RewriteTransformer("txt", "inc")]
+ ]
});
updateSources(["pkg1|a.txt", "pkg2|a.txt"]);
@@ -41,7 +48,9 @@ main() {
"pkg1|a.txt": "pkg2|a.inc",
"pkg2|a.inc": "a"
}, {
- "pkg1": [[new ManyToOneTransformer("txt")]]
+ "pkg1": [
+ [new ManyToOneTransformer("txt")]
+ ]
});
updateSources(["pkg1|a.txt", "pkg2|a.inc"]);
@@ -54,14 +63,19 @@ main() {
buildShouldSucceed();
});
- test("re-runs a transform when a transformed input from another package "
+ test(
+ "re-runs a transform when a transformed input from another package "
"changes", () {
initGraph({
"pkg1|a.txt": "pkg2|a.inc",
"pkg2|a.txt": "a"
}, {
- "pkg1": [[new ManyToOneTransformer("txt")]],
- "pkg2": [[new RewriteTransformer("txt", "inc")]]
+ "pkg1": [
+ [new ManyToOneTransformer("txt")]
+ ],
+ "pkg2": [
+ [new RewriteTransformer("txt", "inc")]
+ ]
});
updateSources(["pkg1|a.txt", "pkg2|a.txt"]);
@@ -74,14 +88,17 @@ main() {
buildShouldSucceed();
});
- test("doesn't complete the build until all packages' transforms are "
+ test(
+ "doesn't complete the build until all packages' transforms are "
"finished running", () {
var transformer = new ManyToOneTransformer("txt");
initGraph({
"pkg1|a.txt": "pkg2|a.inc",
"pkg2|a.inc": "a"
}, {
- "pkg1": [[transformer]]
+ "pkg1": [
+ [transformer]
+ ]
});
updateSources(["pkg1|a.txt", "pkg2|a.inc"]);
@@ -126,7 +143,8 @@ main() {
buildShouldSucceed();
});
- test("doesn't run a transform that's removed because of a change in "
+ test(
+ "doesn't run a transform that's removed because of a change in "
"another package", () {
initGraph({
"pkg1|a.txt": "pkg2|a.inc",
@@ -151,14 +169,19 @@ main() {
buildShouldSucceed();
});
- test("sees a transformer that's newly applied to a cross-package "
+ test(
+ "sees a transformer that's newly applied to a cross-package "
"dependency", () {
initGraph({
"pkg1|a.txt": "pkg2|a.inc",
"pkg2|a.inc": "a"
}, {
- "pkg1": [[new ManyToOneTransformer("txt")]],
- "pkg2": [[new CheckContentTransformer("b", " transformed")]]
+ "pkg1": [
+ [new ManyToOneTransformer("txt")]
+ ],
+ "pkg2": [
+ [new CheckContentTransformer("b", " transformed")]
+ ]
});
updateSources(["pkg1|a.txt", "pkg2|a.inc"]);
@@ -171,14 +194,19 @@ main() {
buildShouldSucceed();
});
- test("doesn't see a transformer that's newly not applied to a "
+ test(
+ "doesn't see a transformer that's newly not applied to a "
"cross-package dependency", () {
initGraph({
"pkg1|a.txt": "pkg2|a.inc",
"pkg2|a.inc": "a"
}, {
- "pkg1": [[new ManyToOneTransformer("txt")]],
- "pkg2": [[new CheckContentTransformer("a", " transformed")]]
+ "pkg1": [
+ [new ManyToOneTransformer("txt")]
+ ],
+ "pkg2": [
+ [new CheckContentTransformer("a", " transformed")]
+ ]
});
updateSources(["pkg1|a.txt", "pkg2|a.inc"]);
@@ -190,4 +218,4 @@ main() {
expectAsset("pkg1|a.out", "b");
buildShouldSucceed();
});
-}
+}

Powered by Google App Engine
This is Rietveld 408576698