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

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

Issue 351703004: Improve pub's pubspec error messages. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: code review Created 6 years, 6 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: sdk/lib/_internal/pub/test/transformer/fails_to_load_a_transform_from_a_non_dependency_test.dart
diff --git a/sdk/lib/_internal/pub/test/transformer/fails_to_load_a_transform_from_a_non_dependency_test.dart b/sdk/lib/_internal/pub/test/transformer/fails_to_load_a_transform_from_a_non_dependency_test.dart
index 64be0157554dca3fe7eb478ee3e354b84f6e6045..1e649c159e38c02a6fd2e212c93da77b0603197b 100644
--- a/sdk/lib/_internal/pub/test/transformer/fails_to_load_a_transform_from_a_non_dependency_test.dart
+++ b/sdk/lib/_internal/pub/test/transformer/fails_to_load_a_transform_from_a_non_dependency_test.dart
@@ -6,6 +6,7 @@ library pub_tests;
import 'package:scheduled_test/scheduled_test.dart';
+import '../../lib/src/exit_codes.dart' as exit_codes;
import '../descriptor.dart' as d;
import '../test_pub.dart';
import '../serve/utils.dart';
@@ -22,11 +23,8 @@ main() {
]).create();
var pub = startPubServe();
- // Ignore the line containing the path to the pubspec.
- pub.stderr.expect(anything);
- pub.stderr.expect('"transformers.foo" refers to a package that\'s not a '
- 'dependency.');
- pub.shouldExit(1);
+ pub.stderr.expect(contains('"foo" is not a dependency.'));
+ pub.shouldExit(exit_codes.DATA);
});
});
}

Powered by Google App Engine
This is Rietveld 408576698