| OLD | NEW |
| 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/lib/unittest.dart'; | 10 import '../../../../pkg/unittest/lib/unittest.dart'; |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 file('foo.dart', 'main() => "foo";') | 182 file('foo.dart', 'main() => "foo";') |
| 183 ]) | 183 ]) |
| 184 ]) | 184 ]) |
| 185 ]) | 185 ]) |
| 186 ]) | 186 ]) |
| 187 ]).scheduleValidate(); | 187 ]).scheduleValidate(); |
| 188 | 188 |
| 189 run(); | 189 run(); |
| 190 }); | 190 }); |
| 191 | 191 |
| 192 test('"tool/" and its subdirectories', () { |
| 193 dir(appPath, [ |
| 194 appPubspec([]), |
| 195 libDir('foo'), |
| 196 dir("tool", [dir("subtool")]) |
| 197 ]).scheduleCreate(); |
| 198 |
| 199 schedulePub(args: ['install'], |
| 200 output: new RegExp(r"Dependencies installed!$")); |
| 201 |
| 202 dir(appPath, [ |
| 203 dir("tool", [ |
| 204 dir("packages", [ |
| 205 dir("myapp", [ |
| 206 file('foo.dart', 'main() => "foo";') |
| 207 ]) |
| 208 ]), |
| 209 dir("subtool", [ |
| 210 dir("packages", [ |
| 211 dir("myapp", [ |
| 212 file('foo.dart', 'main() => "foo";') |
| 213 ]) |
| 214 ]) |
| 215 ]) |
| 216 ]) |
| 217 ]).scheduleValidate(); |
| 218 |
| 219 run(); |
| 220 }); |
| 221 |
| 192 test('"web/" and its subdirectories', () { | 222 test('"web/" and its subdirectories', () { |
| 193 dir(appPath, [ | 223 dir(appPath, [ |
| 194 appPubspec([]), | 224 appPubspec([]), |
| 195 libDir('foo'), | 225 libDir('foo'), |
| 196 dir("web", [dir("subweb")]) | 226 dir("web", [dir("subweb")]) |
| 197 ]).scheduleCreate(); | 227 ]).scheduleCreate(); |
| 198 | 228 |
| 199 schedulePub(args: ['install'], | 229 schedulePub(args: ['install'], |
| 200 output: new RegExp(r"Dependencies installed!$")); | 230 output: new RegExp(r"Dependencies installed!$")); |
| 201 | 231 |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 schedulePub(args: ['install'], | 285 schedulePub(args: ['install'], |
| 256 error: ''' | 286 error: ''' |
| 257 Warning: Package "myapp_name" is using a deprecated layout. | 287 Warning: Package "myapp_name" is using a deprecated layout. |
| 258 See http://www.dartlang.org/docs/pub-package-manager/package-layout.html
for details. | 288 See http://www.dartlang.org/docs/pub-package-manager/package-layout.html
for details. |
| 259 ''', | 289 ''', |
| 260 output: new RegExp(r"Dependencies installed!$")); | 290 output: new RegExp(r"Dependencies installed!$")); |
| 261 | 291 |
| 262 run(); | 292 run(); |
| 263 }); | 293 }); |
| 264 } | 294 } |
| OLD | NEW |