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

Side by Side Diff: utils/tests/pub/install/pub_install_test.dart

Issue 12036065: Make pub use the SDK's "version" file for its version. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Comment regex. Created 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « utils/pub/sdk.dart ('k') | utils/tests/pub/install/sdk/check_out_test.dart » ('j') | no next file with comments »
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 '../../../../pkg/unittest/lib/unittest.dart'; 9 import '../../../../pkg/unittest/lib/unittest.dart';
10 import '../test_pub.dart'; 10 import '../test_pub.dart';
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 output: new RegExp(r"Dependencies installed!$")); 60 output: new RegExp(r"Dependencies installed!$"));
61 61
62 dir(packagesPath, [ 62 dir(packagesPath, [
63 nothing("myapp_name") 63 nothing("myapp_name")
64 ]).scheduleValidate(); 64 ]).scheduleValidate();
65 }); 65 });
66 66
67 integration('does not add a package if it does not have a "lib" directory', () { 67 integration('does not add a package if it does not have a "lib" directory', () {
68 // Using an SDK source, but this should be true of all sources. 68 // Using an SDK source, but this should be true of all sources.
69 dir(sdkPath, [ 69 dir(sdkPath, [
70 file('revision', '1234'), 70 file('version', '0.1.2.3'),
71 dir('pkg', [ 71 dir('pkg', [
72 dir('foo', [ 72 dir('foo', [
73 libPubspec('foo', '0.0.0-not.used') 73 libPubspec('foo', '0.0.0-not.used')
74 ]) 74 ])
75 ]) 75 ])
76 ]).scheduleCreate(); 76 ]).scheduleCreate();
77 77
78 dir(appPath, [ 78 dir(appPath, [
79 pubspec({"name": "myapp", "dependencies": {"foo": {"sdk": "foo"}}}) 79 pubspec({"name": "myapp", "dependencies": {"foo": {"sdk": "foo"}}})
80 ]).scheduleCreate(); 80 ]).scheduleCreate();
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 dir("packages", [ 243 dir("packages", [
244 dir("myapp", [ 244 dir("myapp", [
245 file('foo.dart', 'main() => "foo";') 245 file('foo.dart', 'main() => "foo";')
246 ]) 246 ])
247 ]) 247 ])
248 ]) 248 ])
249 ]).scheduleValidate(); 249 ]).scheduleValidate();
250 }); 250 });
251 }); 251 });
252 } 252 }
OLDNEW
« no previous file with comments | « utils/pub/sdk.dart ('k') | utils/tests/pub/install/sdk/check_out_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698