| Index: test/hosted/offline_test.dart
|
| diff --git a/test/hosted/offline_test.dart b/test/hosted/offline_test.dart
|
| index 1384517e1ebaf63763e1bac1718f3ad7a58535f5..4be597a79068eccc3c22c547011cb92e493b9ec5 100644
|
| --- a/test/hosted/offline_test.dart
|
| +++ b/test/hosted/offline_test.dart
|
| @@ -37,6 +37,31 @@ main() {
|
| }).validate();
|
| });
|
|
|
| + integration('supports prerelease versions', () {
|
| + // Run the server so that we know what URL to use in the system cache.
|
| + serveErrors();
|
| +
|
| + d.cacheDir({
|
| + "foo": ["1.2.3-alpha.1"]
|
| + }, includePubspecs: true).create();
|
| +
|
| + d.appDir({
|
| + "foo": "any"
|
| + }).create();
|
| +
|
| + var warning = null;
|
| + if (command == RunCommand.upgrade) {
|
| + warning = "Warning: Upgrading when offline may not update you "
|
| + "to the latest versions of your dependencies.";
|
| + }
|
| +
|
| + pubCommand(command, args: ['--offline'], warning: warning);
|
| +
|
| + d.packagesDir({
|
| + "foo": "1.2.3-alpha.1"
|
| + }).validate();
|
| + });
|
| +
|
| integration('fails gracefully if a dependency is not cached', () {
|
| // Run the server so that we know what URL to use in the system cache.
|
| serveErrors();
|
|
|