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

Side by Side Diff: utils/tests/pub/install/git/different_repo_name_test.dart

Issue 12782005: Revert "Use scheduled_test for Pub tests." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 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
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 '../../descriptor.dart' as d;
10 import '../../test_pub.dart'; 9 import '../../test_pub.dart';
11 10
12 main() { 11 main() {
13 integration('doesn\'t require the repository name to match the name in the ' 12 integration('doesn\'t require the repository name to match the name in the '
14 'pubspec', () { 13 'pubspec', () {
15 ensureGit(); 14 ensureGit();
16 15
17 d.git('foo.git', [ 16 git('foo.git', [
18 d.libDir('weirdname'), 17 libDir('weirdname'),
19 d.libPubspec('weirdname', '1.0.0') 18 libPubspec('weirdname', '1.0.0')
20 ]).create(); 19 ]).scheduleCreate();
21 20
22 d.dir(appPath, [ 21 dir(appPath, [
23 d.pubspec({ 22 pubspec({
24 "name": "myapp", 23 "name": "myapp",
25 "dependencies": { 24 "dependencies": {
26 "weirdname": {"git": "../foo.git"} 25 "weirdname": {"git": "../foo.git"}
27 } 26 }
28 }) 27 })
29 ]).create(); 28 ]).scheduleCreate();
30 29
31 schedulePub(args: ['install'], 30 schedulePub(args: ['install'],
32 output: new RegExp(r"Dependencies installed!$")); 31 output: new RegExp(r"Dependencies installed!$"));
33 32
34 d.dir(packagesPath, [ 33 dir(packagesPath, [
35 d.dir('weirdname', [ 34 dir('weirdname', [
36 d.file('weirdname.dart', 'main() => "weirdname";') 35 file('weirdname.dart', 'main() => "weirdname";')
37 ]) 36 ])
38 ]).validate(); 37 ]).scheduleValidate();
39 }); 38 });
40 } 39 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698