| 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/unittest.dart'); | 10 #import('../../../pkg/unittest/unittest.dart'); |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |