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

Side by Side Diff: test/unknown_source_test.dart

Issue 1215833002: Use the new test runner. (Closed) Base URL: git@github.com:dart-lang/pub.git@master
Patch Set: Created 5 years, 6 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
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS d.file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS d.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 d.file. 3 // BSD-style license that can be found in the LICENSE d.file.
4 4
5 library pub_tests; 5 library pub_tests;
6 6
7 import 'dart:convert'; 7 import 'dart:convert';
8 8
9 import 'descriptor.dart' as d; 9 import 'descriptor.dart' as d;
10 import 'test_pub.dart'; 10 import 'test_pub.dart';
11 11
12 main() { 12 main() {
13 initConfig();
14
15 forBothPubGetAndUpgrade((command) { 13 forBothPubGetAndUpgrade((command) {
16 integration('fails gracefully on a dependency from an unknown source', () { 14 integration('fails gracefully on a dependency from an unknown source', () {
17 d.appDir({"foo": {"bad": "foo"}}).create(); 15 d.appDir({"foo": {"bad": "foo"}}).create();
18 16
19 pubCommand(command, error: 17 pubCommand(command, error:
20 'Package myapp depends on foo from unknown source "bad".'); 18 'Package myapp depends on foo from unknown source "bad".');
21 }); 19 });
22 20
23 integration('fails gracefully on transitive dependency from an unknown ' 21 integration('fails gracefully on transitive dependency from an unknown '
24 'source', () { 22 'source', () {
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 63
66 // Should upgrade to the new one. 64 // Should upgrade to the new one.
67 d.dir(packagesPath, [ 65 d.dir(packagesPath, [
68 d.dir("foo", [ 66 d.dir("foo", [
69 d.file("foo.dart", 'main() => "foo";') 67 d.file("foo.dart", 'main() => "foo";')
70 ]) 68 ])
71 ]).validate(); 69 ]).validate();
72 }); 70 });
73 }); 71 });
74 } 72 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698