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

Side by Side Diff: sdk/lib/_internal/pub/test/unknown_source_test.dart

Issue 19503006: Use appPubspec() in more places. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 5 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 | « sdk/lib/_internal/pub/test/pub_install_and_update_test.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 d.file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS d.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 d.file. 3 // BSD-style license that can be found in the LICENSE d.file.
4 4
5 library pub_tests; 5 library pub_tests;
6 6
7 import 'dart:io'; 7 import 'dart:io';
8 import 'dart:json' as json; 8 import 'dart:json' as json;
9 9
10 import 'descriptor.dart' as d; 10 import 'descriptor.dart' as d;
(...skipping 24 matching lines...) Expand all
35 }); 35 });
36 36
37 integration('ignores unknown source in lockfile', () { 37 integration('ignores unknown source in lockfile', () {
38 d.dir('foo', [ 38 d.dir('foo', [
39 d.libDir('foo'), 39 d.libDir('foo'),
40 d.libPubspec('foo', '0.0.1') 40 d.libPubspec('foo', '0.0.1')
41 ]).create(); 41 ]).create();
42 42
43 // Depend on "foo" from a valid source. 43 // Depend on "foo" from a valid source.
44 d.dir(appPath, [ 44 d.dir(appPath, [
45 d.pubspec({ 45 d.appPubspec({
46 "name": "myapp", 46 "foo": {"path": "../foo"}
47 "dependencies": {
48 "foo": {"path": "../foo"}
49 }
50 }) 47 })
51 ]).create(); 48 ]).create();
52 49
53 // But lock it to a bad one. 50 // But lock it to a bad one.
54 d.dir(appPath, [ 51 d.dir(appPath, [
55 d.file("pubspec.lock", json.stringify({ 52 d.file("pubspec.lock", json.stringify({
56 'packages': { 53 'packages': {
57 'foo': { 54 'foo': {
58 'version': '0.0.0', 55 'version': '0.0.0',
59 'source': 'bad', 56 'source': 'bad',
60 'description': { 57 'description': {
61 'name': 'foo' 58 'name': 'foo'
62 } 59 }
63 } 60 }
64 } 61 }
65 })) 62 }))
66 ]).create(); 63 ]).create();
67 64
68 pubCommand(command); 65 pubCommand(command);
69 66
70 // Should update to the new one. 67 // Should update to the new one.
71 d.dir(packagesPath, [ 68 d.dir(packagesPath, [
72 d.dir("foo", [ 69 d.dir("foo", [
73 d.file("foo.dart", 'main() => "foo";') 70 d.file("foo.dart", 'main() => "foo";')
74 ]) 71 ])
75 ]).validate(); 72 ]).validate();
76 }); 73 });
77 }); 74 });
78 } 75 }
OLDNEW
« no previous file with comments | « sdk/lib/_internal/pub/test/pub_install_and_update_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698