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

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

Issue 602253002: Use pub_semver package in pub. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 2 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
« no previous file with comments | « sdk/lib/_internal/pub/test/test_pub.dart ('k') | sdk/lib/_internal/pub/test/version_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_upgrade_test; 5 library pub_upgrade_test;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import 'package:pub_semver/pub_semver.dart';
9 import 'package:unittest/unittest.dart'; 10 import 'package:unittest/unittest.dart';
10 11
11 import '../lib/src/lock_file.dart'; 12 import '../lib/src/lock_file.dart';
12 import '../lib/src/log.dart' as log; 13 import '../lib/src/log.dart' as log;
13 import '../lib/src/package.dart'; 14 import '../lib/src/package.dart';
14 import '../lib/src/pubspec.dart'; 15 import '../lib/src/pubspec.dart';
15 import '../lib/src/sdk.dart' as sdk; 16 import '../lib/src/sdk.dart' as sdk;
16 import '../lib/src/source/cached.dart'; 17 import '../lib/src/source/cached.dart';
17 import '../lib/src/system_cache.dart'; 18 import '../lib/src/system_cache.dart';
18 import '../lib/src/utils.dart'; 19 import '../lib/src/utils.dart';
19 import '../lib/src/version.dart';
20 import '../lib/src/solver/version_solver.dart'; 20 import '../lib/src/solver/version_solver.dart';
21 import 'test_pub.dart'; 21 import 'test_pub.dart';
22 22
23 MockSource source1; 23 MockSource source1;
24 MockSource source2; 24 MockSource source2;
25 25
26 main() { 26 main() {
27 initConfig(); 27 initConfig();
28 28
29 // Uncomment this to debug failing tests. 29 // Uncomment this to debug failing tests.
(...skipping 1482 matching lines...) Expand 10 before | Expand all | Expand 10 after
1512 } 1512 }
1513 1513
1514 var source = "mock1"; 1514 var source = "mock1";
1515 if (match[7] != null) { 1515 if (match[7] != null) {
1516 source = match[7]; 1516 source = match[7];
1517 if (source == "root") source = null; 1517 if (source == "root") source = null;
1518 } 1518 }
1519 1519
1520 return new PackageId(name, source, parsedVersion, description); 1520 return new PackageId(name, source, parsedVersion, description);
1521 } 1521 }
OLDNEW
« no previous file with comments | « sdk/lib/_internal/pub/test/test_pub.dart ('k') | sdk/lib/_internal/pub/test/version_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698