Chromium Code Reviews| Index: sdk/lib/_internal/pub/test/serve/roots/throws_an_error_by_default_if_web_and_test_dont_exist_test.dart |
| diff --git a/sdk/lib/_internal/pub/test/serve/roots/throws_an_error_by_default_if_web_and_test_dont_exist_test.dart b/sdk/lib/_internal/pub/test/serve/roots/throws_an_error_by_default_if_web_and_test_dont_exist_test.dart |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..7995bcaa3193cd338595dcfb595d3bcc0c86ccbe |
| --- /dev/null |
| +++ b/sdk/lib/_internal/pub/test/serve/roots/throws_an_error_by_default_if_web_and_test_dont_exist_test.dart |
| @@ -0,0 +1,27 @@ |
| +// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS d.file |
| +// for details. All rights reserved. Use of this source code is governed by a |
| +// BSD-style license that can be found in the LICENSE file. |
| + |
| +library pub_tests; |
| + |
| +import 'package:scheduled_test/scheduled_stream.dart'; |
| +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 '../utils.dart'; |
| + |
| +main() { |
| + initConfig(); |
| + integration("throws an error by default if web and test don't exist", () { |
| + d.dir(appPath, [ |
| + d.appPubspec() |
| + ]).create(); |
| + |
| + var server = startPubServe(createWebDir: false); |
| + server.stderr.expect('Neither "web/" nor "test/" exist to serve from.'); |
|
Bob Nystrom
2014/02/19 00:36:52
How about:
"Your package must have a "web" or "te
nweiz
2014/02/19 01:25:58
That sounds like you're saying "in order to use 'p
Bob Nystrom
2014/02/19 01:50:55
Maybe, "Your package must have a "web" or "test" d
nweiz
2014/02/19 20:39:17
Done.
|
| + server.shouldExit(exit_codes.USAGE); |
| + }); |
| +} |