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

Side by Side Diff: utils/tests/pub/install/sdk/check_out_test.dart

Issue 11187011: Add a Pub test that runs against the real Dart SDK. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Code review changes Created 8 years, 2 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | utils/tests/pub/test_pub.dart » ('j') | utils/tests/pub/test_pub.dart » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « no previous file | utils/tests/pub/test_pub.dart » ('j') | utils/tests/pub/test_pub.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698