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

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

Issue 10951021: Add packages/ directories for dart files in web/. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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/entrypoint.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('test_pub.dart'); 9 #import('test_pub.dart');
10 #import('../../../pkg/unittest/unittest.dart'); 10 #import('../../../pkg/unittest/unittest.dart');
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 file('foo.dart', 'main() => "foo";') 147 file('foo.dart', 'main() => "foo";')
148 ]) 148 ])
149 ]) 149 ])
150 ]) 150 ])
151 ]) 151 ])
152 ]).scheduleValidate(); 152 ]).scheduleValidate();
153 153
154 run(); 154 run();
155 }); 155 });
156 156
157 test('"web/" and its subdirectories', () {
158 dir(appPath, [
159 appPubspec([]),
160 libDir('foo'),
161 dir("web", [dir("subweb")])
162 ]).scheduleCreate();
163
164 schedulePub(args: ['install'],
165 output: const RegExp(@"Dependencies installed!$"));
166
167 dir(appPath, [
168 dir("web", [
169 dir("packages", [
170 dir("myapp", [
171 file('foo.dart', 'main() => "foo";')
172 ])
173 ]),
174 dir("subweb", [
175 dir("packages", [
176 dir("myapp", [
177 file('foo.dart', 'main() => "foo";')
178 ])
179 ])
180 ])
181 ])
182 ]).scheduleValidate();
183
184 run();
185 });
186
157 test('"bin/"', () { 187 test('"bin/"', () {
158 dir(appPath, [ 188 dir(appPath, [
159 appPubspec([]), 189 appPubspec([]),
160 libDir('foo'), 190 libDir('foo'),
161 dir("bin") 191 dir("bin")
162 ]).scheduleCreate(); 192 ]).scheduleCreate();
163 193
164 schedulePub(args: ['install'], 194 schedulePub(args: ['install'],
165 output: const RegExp(@"Dependencies installed!$")); 195 output: const RegExp(@"Dependencies installed!$"));
166 196
(...skipping 23 matching lines...) Expand all
190 schedulePub(args: ['install'], 220 schedulePub(args: ['install'],
191 error: ''' 221 error: '''
192 Warning: Package "myapp_name" is using a deprecated layout. 222 Warning: Package "myapp_name" is using a deprecated layout.
193 See http://www.dartlang.org/docs/pub-package-manager/package-layout.html for details. 223 See http://www.dartlang.org/docs/pub-package-manager/package-layout.html for details.
194 ''', 224 ''',
195 output: const RegExp(@"Dependencies installed!$")); 225 output: const RegExp(@"Dependencies installed!$"));
196 226
197 run(); 227 run();
198 }); 228 });
199 } 229 }
OLDNEW
« no previous file with comments | « utils/pub/entrypoint.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698