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

Side by Side Diff: utils/tests/pub/update/pub_update_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/tests/pub/test_pub.dart ('k') | no next file » | 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 62
63 dir(packagesPath, [ 63 dir(packagesPath, [
64 nothing("myapp_name") 64 nothing("myapp_name")
65 ]).scheduleValidate(); 65 ]).scheduleValidate();
66 }); 66 });
67 67
68 integration('does not add a package if it does not have a "lib" ' 68 integration('does not add a package if it does not have a "lib" '
69 'directory', () { 69 'directory', () {
70 // Using an SDK source, but this should be true of all sources. 70 // Using an SDK source, but this should be true of all sources.
71 dir(sdkPath, [ 71 dir(sdkPath, [
72 file('revision', '1234'), 72 file('version', '0.1.2.3'),
73 dir('pkg', [ 73 dir('pkg', [
74 dir('foo', [ 74 dir('foo', [
75 libPubspec('foo', '0.0.0-not.used') 75 libPubspec('foo', '0.0.0-not.used')
76 ]) 76 ])
77 ]) 77 ])
78 ]).scheduleCreate(); 78 ]).scheduleCreate();
79 79
80 dir(appPath, [ 80 dir(appPath, [
81 pubspec({"name": "myapp", "dependencies": {"foo": {"sdk": "foo"}}}) 81 pubspec({"name": "myapp", "dependencies": {"foo": {"sdk": "foo"}}})
82 ]).scheduleCreate(); 82 ]).scheduleCreate();
83 83
84 schedulePub(args: ['update'], 84 schedulePub(args: ['update'],
85 output: new RegExp(r"Dependencies updated!$")); 85 output: new RegExp(r"Dependencies updated!$"));
86 86
87 packagesDir({"foo": null}).scheduleValidate(); 87 packagesDir({"foo": null}).scheduleValidate();
88 }); 88 });
89 } 89 }
OLDNEW
« no previous file with comments | « utils/tests/pub/test_pub.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698