| 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 "weird-name": {"git": "../foo.git"} | 92 "weird-name": {"git": "../foo.git"} |
| 93 } | 93 } |
| 94 }) | 94 }) |
| 95 ]).scheduleCreate(); | 95 ]).scheduleCreate(); |
| 96 | 96 |
| 97 // TODO(nweiz): clean up this RegExp when either issue 4706 or 4707 is | 97 // TODO(nweiz): clean up this RegExp when either issue 4706 or 4707 is |
| 98 // fixed. | 98 // fixed. |
| 99 schedulePub(args: ['install'], | 99 schedulePub(args: ['install'], |
| 100 error: const RegExp(@'^FormatException: The name you specified for ' | 100 error: const RegExp(@'^FormatException: The name you specified for ' |
| 101 @'your dependency, "weird-name", doesn' @"'" @'t match the name ' | 101 @'your dependency, "weird-name", doesn' @"'" @'t match the name ' |
| 102 @'"foo" \(from "\.\./foo\.git"\)\.')); | 102 @'"foo" \(from "\.\./foo\.git"\)\.'), |
| 103 exitCode: 1); |
| 103 | 104 |
| 104 run(); | 105 run(); |
| 105 }); | 106 }); |
| 106 | 107 |
| 107 test('checks out and updates a package from Git', () { | 108 test('checks out and updates a package from Git', () { |
| 108 ensureGit(); | 109 ensureGit(); |
| 109 | 110 |
| 110 git('foo.git', [ | 111 git('foo.git', [ |
| 111 file('foo.dart', 'main() => "foo";') | 112 file('foo.dart', 'main() => "foo";') |
| 112 ]).scheduleCreate(); | 113 ]).scheduleCreate(); |
| (...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 360 dir(packagesPath, [ | 361 dir(packagesPath, [ |
| 361 dir('foo', [ | 362 dir('foo', [ |
| 362 file('foo.dart', 'main() => "foo";') | 363 file('foo.dart', 'main() => "foo";') |
| 363 ]) | 364 ]) |
| 364 ]).scheduleValidate(); | 365 ]).scheduleValidate(); |
| 365 | 366 |
| 366 run(); | 367 run(); |
| 367 }); | 368 }); |
| 368 }); | 369 }); |
| 369 } | 370 } |
| OLD | NEW |