Chromium Code Reviews

Unified Diff: sdk/lib/_internal/pub/test/transformer/runs_a_transform_on_a_dependency_test.dart

Issue 291843011: Run pub tests against older versions of barback. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: code review Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: sdk/lib/_internal/pub/test/transformer/runs_a_transform_on_a_dependency_test.dart
diff --git a/sdk/lib/_internal/pub/test/transformer/runs_a_transform_on_a_dependency_test.dart b/sdk/lib/_internal/pub/test/transformer/runs_a_transform_on_a_dependency_test.dart
index f106895606cacbe27c7aabd65805c7a26c4f6218..bf7f772119a771ba3674cde348bc727bb77eb0d0 100644
--- a/sdk/lib/_internal/pub/test/transformer/runs_a_transform_on_a_dependency_test.dart
+++ b/sdk/lib/_internal/pub/test/transformer/runs_a_transform_on_a_dependency_test.dart
@@ -10,29 +10,31 @@ import '../serve/utils.dart';
main() {
initConfig();
- integration("runs a local transform on a dependency", () {
- d.dir("foo", [
- d.pubspec({
- "name": "foo",
- "version": "0.0.1",
- "transformers": ["foo/transformer"]
- }),
- d.dir("lib", [
- d.file("transformer.dart", REWRITE_TRANSFORMER)
- ]),
- d.dir("asset", [
- d.file("foo.txt", "foo")
- ])
- ]).create();
+ withBarbackVersions("any", () {
+ integration("runs a local transform on a dependency", () {
+ d.dir("foo", [
+ d.pubspec({
+ "name": "foo",
+ "version": "0.0.1",
+ "transformers": ["foo/transformer"]
+ }),
+ d.dir("lib", [
+ d.file("transformer.dart", REWRITE_TRANSFORMER)
+ ]),
+ d.dir("asset", [
+ d.file("foo.txt", "foo")
+ ])
+ ]).create();
- d.dir(appPath, [
- d.appPubspec({"foo": {"path": "../foo"}}),
- ]).create();
+ d.dir(appPath, [
+ d.appPubspec({"foo": {"path": "../foo"}}),
+ ]).create();
- createLockFile('myapp', sandbox: ['foo'], pkg: ['barback']);
+ createLockFile('myapp', sandbox: ['foo'], pkg: ['barback']);
- pubServe();
- requestShouldSucceed("assets/foo/foo.out", "foo.out");
- endPubServe();
+ pubServe();
+ requestShouldSucceed("assets/foo/foo.out", "foo.out");
+ endPubServe();
+ });
});
}

Powered by Google App Engine