Chromium Code Reviews

Unified Diff: test/run/mode_test.dart

Issue 1530353002: Drop support for older Barback versions. (Closed) Base URL: git@github.com:dart-lang/pub.git@master
Patch Set: Created 5 years 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
« no previous file with comments | « test/run/doesnt_load_an_unnecessary_transformer_test.dart ('k') | test/run/resource_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/run/mode_test.dart
diff --git a/test/run/mode_test.dart b/test/run/mode_test.dart
index d612866b813ac8fa7385cae1e959a69e51765a13..b59a7ab09a58a70f380260c281656103a7085d1a 100644
--- a/test/run/mode_test.dart
+++ b/test/run/mode_test.dart
@@ -26,58 +26,56 @@ class DartTransformer extends Transformer {
""";
main() {
- withBarbackVersions("any", () {
- integration('runs a local script with customizable modes', () {
- d.dir(appPath, [
- d.pubspec({
- "name": "myapp",
- "transformers": ["myapp/src/transformer"]
- }),
- d.dir("lib", [d.dir("src", [
- d.file("transformer.dart", TRANSFORMER),
- d.file("primary.in", "")
- ])])
- ]).create();
-
- createLockFile('myapp', pkg: ['barback']);
-
- // By default it should run in debug mode.
- var pub = pubRun(args: ["bin/script"]);
- pub.stdout.expect("debug");
- pub.shouldExit();
-
- // A custom mode should be specifiable.
- pub = pubRun(args: ["--mode", "custom-mode", "bin/script"]);
- pub.stdout.expect("custom-mode");
- pub.shouldExit();
- });
-
- integration('runs a dependency script with customizable modes', () {
- d.dir("foo", [
- d.pubspec({
- "name": "foo",
- "version": "1.2.3",
- "transformers": ["foo/src/transformer"]
- }),
- d.dir("lib", [d.dir("src", [
- d.file("transformer.dart", TRANSFORMER),
- d.file("primary.in", "")
- ])])
- ]).create();
-
- d.appDir({"foo": {"path": "../foo"}}).create();
-
- createLockFile('myapp', sandbox: ['foo'], pkg: ['barback']);
-
- // By default it should run in release mode.
- var pub = pubRun(args: ["foo:script"]);
- pub.stdout.expect("release");
- pub.shouldExit();
-
- // A custom mode should be specifiable.
- pub = pubRun(args: ["--mode", "custom-mode", "foo:script"]);
- pub.stdout.expect("custom-mode");
- pub.shouldExit();
- });
- });
+ integration('runs a local script with customizable modes', () {
+ d.dir(appPath, [
+ d.pubspec({
+ "name": "myapp",
+ "transformers": ["myapp/src/transformer"]
+ }),
+ d.dir("lib", [d.dir("src", [
+ d.file("transformer.dart", TRANSFORMER),
+ d.file("primary.in", "")
+ ])])
+ ]).create();
+
+ createLockFile('myapp', pkg: ['barback']);
+
+ // By default it should run in debug mode.
+ var pub = pubRun(args: ["bin/script"]);
+ pub.stdout.expect("debug");
+ pub.shouldExit();
+
+ // A custom mode should be specifiable.
+ pub = pubRun(args: ["--mode", "custom-mode", "bin/script"]);
+ pub.stdout.expect("custom-mode");
+ pub.shouldExit();
+ });
+
+ integration('runs a dependency script with customizable modes', () {
+ d.dir("foo", [
+ d.pubspec({
+ "name": "foo",
+ "version": "1.2.3",
+ "transformers": ["foo/src/transformer"]
+ }),
+ d.dir("lib", [d.dir("src", [
+ d.file("transformer.dart", TRANSFORMER),
+ d.file("primary.in", "")
+ ])])
+ ]).create();
+
+ d.appDir({"foo": {"path": "../foo"}}).create();
+
+ createLockFile('myapp', sandbox: ['foo'], pkg: ['barback']);
+
+ // By default it should run in release mode.
+ var pub = pubRun(args: ["foo:script"]);
+ pub.stdout.expect("release");
+ pub.shouldExit();
+
+ // A custom mode should be specifiable.
+ pub = pubRun(args: ["--mode", "custom-mode", "foo:script"]);
+ pub.stdout.expect("custom-mode");
+ pub.shouldExit();
+ });
}
« no previous file with comments | « test/run/doesnt_load_an_unnecessary_transformer_test.dart ('k') | test/run/resource_test.dart » ('j') | no next file with comments »

Powered by Google App Engine