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

Unified Diff: sdk/lib/_internal/pub/test/transformer/fails_to_load_a_pubspec_with_reserved_transformer_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. 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_pubspec_with_reserved_transformer_test.dart
diff --git a/sdk/lib/_internal/pub/test/transformer/fails_to_load_a_pubspec_with_reserved_transformer_test.dart b/sdk/lib/_internal/pub/test/transformer/fails_to_load_a_pubspec_with_reserved_transformer_test.dart
index 2e44077c50e7f9bba2b5abcbe47b4eb3bc515e71..0f6e950754eb7ae73aee17770d100641f28ea646 100644
--- a/sdk/lib/_internal/pub/test/transformer/fails_to_load_a_pubspec_with_reserved_transformer_test.dart
+++ b/sdk/lib/_internal/pub/test/transformer/fails_to_load_a_pubspec_with_reserved_transformer_test.dart
@@ -11,24 +11,26 @@ import '../serve/utils.dart';
main() {
initConfig();
- integration("fails to load a pubspec with reserved transformer", () {
- d.dir(appPath, [
- d.pubspec({
- "name": "myapp",
- "transformers": ["\$nonexistent"]
- }),
- d.dir("lib", [d.dir("src", [
- d.file("transformer.dart", REWRITE_TRANSFORMER)
- ])])
- ]).create();
+ withBarbackVersions("any", () {
+ integration("fails to load a pubspec with reserved transformer", () {
+ d.dir(appPath, [
+ d.pubspec({
+ "name": "myapp",
+ "transformers": ["\$nonexistent"]
+ }),
+ d.dir("lib", [d.dir("src", [
+ d.file("transformer.dart", REWRITE_TRANSFORMER)
+ ])])
+ ]).create();
- createLockFile('myapp', pkg: ['barback']);
+ createLockFile('myapp', pkg: ['barback']);
- var pub = startPubServe();
- pub.stderr.expect(emitsLines(
- 'Error in pubspec for package "myapp" loaded from pubspec.yaml:\n'
- 'Invalid transformer configuration for "transformers.\$nonexistent": '
- 'Unsupported built-in transformer \$nonexistent.'));
- pub.shouldExit(1);
+ var pub = startPubServe();
+ pub.stderr.expect(emitsLines(
+ 'Error in pubspec for package "myapp" loaded from pubspec.yaml:\n'
+ 'Invalid transformer configuration for "transformers.\$nonexistent": '
+ 'Unsupported built-in transformer \$nonexistent.'));
+ pub.shouldExit(1);
+ });
});
}

Powered by Google App Engine
This is Rietveld 408576698