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

Unified Diff: sdk/lib/_internal/pub/test/pub_uploader_test.dart

Issue 141113011: Support directories other than "web" in pub build. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Revise. Created 6 years, 11 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/pub_uploader_test.dart
diff --git a/sdk/lib/_internal/pub/test/pub_uploader_test.dart b/sdk/lib/_internal/pub/test/pub_uploader_test.dart
index 9c8b822f6365d317bfd02d5400475709a8074ca1..7f0bde9e609b4601973c8d1a77a9c32791b06ffe 100644
--- a/sdk/lib/_internal/pub/test/pub_uploader_test.dart
+++ b/sdk/lib/_internal/pub/test/pub_uploader_test.dart
@@ -11,6 +11,7 @@ import 'package:scheduled_test/scheduled_process.dart';
import 'package:scheduled_test/scheduled_server.dart';
import 'package:scheduled_test/scheduled_test.dart';
+import '../lib/src/exit_codes.dart' as exit_codes;
import '../lib/src/io.dart';
import '../lib/src/utils.dart';
import 'descriptor.dart' as d;
@@ -40,17 +41,17 @@ main() {
group('displays usage', () {
integration('when run with no arguments', () {
schedulePub(args: ['uploader'],
- output: USAGE_STRING, exitCode: 64);
+ output: USAGE_STRING, exitCode: exit_codes.USAGE);
});
integration('when run with only a command', () {
schedulePub(args: ['uploader', 'add'],
- output: USAGE_STRING, exitCode: 64);
+ output: USAGE_STRING, exitCode: exit_codes.USAGE);
});
integration('when run with an invalid command', () {
schedulePub(args: ['uploader', 'foo', 'email'],
- output: USAGE_STRING, exitCode: 64);
+ output: USAGE_STRING, exitCode: exit_codes.USAGE);
});
});
@@ -73,7 +74,7 @@ main() {
});
expect(pub.nextLine(), completion(equals('Good job!')));
- pub.shouldExit(0);
+ pub.shouldExit(exit_codes.SUCCESS);
});
integration('removes an uploader', () {
@@ -91,7 +92,7 @@ main() {
});
expect(pub.nextLine(), completion(equals('Good job!')));
- pub.shouldExit(0);
+ pub.shouldExit(exit_codes.SUCCESS);
});
integration('defaults to the current package', () {
@@ -111,7 +112,7 @@ main() {
});
expect(pub.nextLine(), completion(equals('Good job!')));
- pub.shouldExit(0);
+ pub.shouldExit(exit_codes.SUCCESS);
});
integration('add provides an error', () {

Powered by Google App Engine
This is Rietveld 408576698