| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 library pub_tests; | 5 library pub_tests; |
| 6 | 6 |
| 7 import 'dart:io'; | 7 import 'dart:io'; |
| 8 | 8 |
| 9 import '../../test_pub.dart'; | 9 import '../../test_pub.dart'; |
| 10 import '../../../../../pkg/unittest/unittest.dart'; | 10 import '../../../../../pkg/unittest/unittest.dart'; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 pubspec({"name": "myapp", "dependencies": {"foo": {"sdk": "foo"}}}) | 25 pubspec({"name": "myapp", "dependencies": {"foo": {"sdk": "foo"}}}) |
| 26 ]).scheduleCreate(); | 26 ]).scheduleCreate(); |
| 27 | 27 |
| 28 schedulePub(args: ['install'], | 28 schedulePub(args: ['install'], |
| 29 output: const RegExp(r"Dependencies installed!$")); | 29 output: const RegExp(r"Dependencies installed!$")); |
| 30 | 30 |
| 31 packagesDir({"foo": "0.0.1234"}).scheduleValidate(); | 31 packagesDir({"foo": "0.0.1234"}).scheduleValidate(); |
| 32 | 32 |
| 33 run(); | 33 run(); |
| 34 }); | 34 }); |
| 35 |
| 36 // This is necessary to test that the "revision" file in the SDK remains in a |
| 37 // format that Pub understands. |
| 38 test('checks out a package from the real SDK', () { |
| 39 ensureBuild(); |
| 40 |
| 41 dir(appPath, [ |
| 42 pubspec({ |
| 43 "name": "myapp", |
| 44 "dependencies": {"unittest": {"sdk": "unittest"}} |
| 45 }) |
| 46 ]).scheduleCreate(); |
| 47 |
| 48 schedulePub(args: ['install'], |
| 49 output: const RegExp(r"Dependencies installed!$"), |
| 50 realSdk: true); |
| 51 |
| 52 dir(packagesPath, [ |
| 53 dir("unittest") |
| 54 ]); |
| 55 |
| 56 run(); |
| 57 }); |
| 35 } | 58 } |
| OLD | NEW |