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

Unified Diff: test/global/activate/activate_path_after_hosted_test.dart

Issue 1281623002: Fix a bunch of pub tests that started running "pub get". (Closed) Base URL: git@github.com:dart-lang/pub.git@master
Patch Set: Created 5 years, 4 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
« no previous file with comments | « test/dart2js/unminified_in_nonrelease_mode_test.dart ('k') | test/global/activate/path_package_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/global/activate/activate_path_after_hosted_test.dart
diff --git a/test/global/activate/activate_path_after_hosted_test.dart b/test/global/activate/activate_path_after_hosted_test.dart
index 1f37910931ce318f15d712918a88b06a4c2afc45..318e45b212b9d8e8c7221844541184a48411822d 100644
--- a/test/global/activate/activate_path_after_hosted_test.dart
+++ b/test/global/activate/activate_path_after_hosted_test.dart
@@ -4,6 +4,7 @@
import 'package:path/path.dart' as p;
import 'package:pub/src/io.dart';
+import 'package:scheduled_test/scheduled_test.dart';
import '../../descriptor.dart' as d;
import '../../test_pub.dart';
@@ -28,9 +29,12 @@ main() {
schedulePub(args: ["global", "activate", "foo"]);
var path = canonicalize(p.join(sandboxDir, "foo"));
- schedulePub(args: ["global", "activate", "-spath", "../foo"], output: """
- Package foo is currently active at version 1.0.0.
- Activated foo 2.0.0 at path "$path".""");
+ schedulePub(
+ args: ["global", "activate", "-spath", "../foo"],
+ output: allOf([
+ contains("Package foo is currently active at version 1.0.0."),
+ contains('Activated foo 2.0.0 at path "$path".')
+ ]));
// Should now run the path one.
var pub = pubRun(global: true, args: ["foo"]);
« no previous file with comments | « test/dart2js/unminified_in_nonrelease_mode_test.dart ('k') | test/global/activate/path_package_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698