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

Side by Side Diff: sdk/lib/_internal/pub/test/implicit_dependency_test.dart

Issue 391363004: Include file path in JSON error when possible. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Revise. Created 6 years, 5 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) 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 'package:scheduled_test/scheduled_test.dart';
6
7 import 'descriptor.dart' as d; 5 import 'descriptor.dart' as d;
8 import 'test_pub.dart'; 6 import 'test_pub.dart';
9 import '../lib/src/barback.dart' as barback; 7 import '../lib/src/barback.dart' as barback;
10 import '../lib/src/version.dart'; 8 import '../lib/src/version.dart';
11 9
12 main() { 10 main() {
13 initConfig(); 11 initConfig();
14 12
15 forBothPubGetAndUpgrade((command) { 13 forBothPubGetAndUpgrade((command) {
16 integration("implicitly constrains it to versions pub supports", () { 14 integration("implicitly constrains it to versions pub supports", () {
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 var constraint = barback.pubConstraints[packageName]; 115 var constraint = barback.pubConstraints[packageName];
118 return new Version(constraint.min.major, constraint.min.minor - 1, 0) 116 return new Version(constraint.min.major, constraint.min.minor - 1, 0)
119 .toString(); 117 .toString();
120 } 118 }
121 119
122 String nextPatch(String packageName) => 120 String nextPatch(String packageName) =>
123 barback.pubConstraints[packageName].min.nextPatch.toString(); 121 barback.pubConstraints[packageName].min.nextPatch.toString();
124 122
125 String max(String packageName) => 123 String max(String packageName) =>
126 barback.pubConstraints[packageName].max.toString(); 124 barback.pubConstraints[packageName].max.toString();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698