Chromium Code Reviews

Side by Side Diff: test/validator/dependency_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.
Jump to:
View unified diff |
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 import 'dart:async'; 5 import 'dart:async';
6 import 'dart:convert'; 6 import 'dart:convert';
7 7
8 import 'package:http/http.dart' as http; 8 import 'package:http/http.dart' as http;
9 import 'package:http/testing.dart'; 9 import 'package:http/testing.dart';
10 import 'package:path/path.dart' as path; 10 import 'package:path/path.dart' as path;
(...skipping 37 matching lines...)
48 }), 200)); 48 }), 200));
49 } 49 }
50 })); 50 }));
51 51
52 d.dir(appPath, [ 52 d.dir(appPath, [
53 d.libPubspec("test_pkg", "1.0.0", deps: {"foo": dep}) 53 d.libPubspec("test_pkg", "1.0.0", deps: {"foo": dep})
54 ]).create(); 54 ]).create();
55 } 55 }
56 56
57 main() { 57 main() {
58 initConfig();
59
60 group('should consider a package valid if it', () { 58 group('should consider a package valid if it', () {
61 integration('looks normal', () { 59 integration('looks normal', () {
62 d.validPackage.create(); 60 d.validPackage.create();
63 expectNoValidationError(dependency); 61 expectNoValidationError(dependency);
64 }); 62 });
65 63
66 integration('has a ^ constraint with an appropriate SDK constraint', () { 64 integration('has a ^ constraint with an appropriate SDK constraint', () {
67 d.dir(appPath, [ 65 d.dir(appPath, [
68 d.libPubspec("test_pkg", "1.0.0", deps: { 66 d.libPubspec("test_pkg", "1.0.0", deps: {
69 "foo": "^1.2.3" 67 "foo": "^1.2.3"
(...skipping 338 matching lines...)
408 d.libPubspec("test_pkg", "1.0.0", deps: { 406 d.libPubspec("test_pkg", "1.0.0", deps: {
409 "foo": "^1.2.3" 407 "foo": "^1.2.3"
410 }, sdk: ">=1.5.0 <2.0.0") 408 }, sdk: ">=1.5.0 <2.0.0")
411 ]).create(); 409 ]).create();
412 410
413 expectDependencyValidationError(' foo: ">=1.2.3 <2.0.0"'); 411 expectDependencyValidationError(' foo: ">=1.2.3 <2.0.0"');
414 }); 412 });
415 }); 413 });
416 }); 414 });
417 } 415 }
OLDNEW

Powered by Google App Engine