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

Side by Side Diff: test/get/path/relative_path_test.dart

Issue 1153643002: Use "package:" imports for pub. (Closed) Base URL: git@github.com:dart-lang/pub_test@master
Patch Set: Code review changes Created 5 years, 7 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) 2013, the Dart project authors. Please see the AUTHORS d.file 1 // Copyright (c) 2013, 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 import 'package:path/path.dart' as path; 5 import 'package:path/path.dart' as path;
6 import 'package:pub/src/lock_file.dart';
7 import 'package:pub/src/source_registry.dart';
6 import 'package:scheduled_test/scheduled_test.dart'; 8 import 'package:scheduled_test/scheduled_test.dart';
7 import 'package:unittest/unittest.dart'; 9 import 'package:unittest/unittest.dart';
8 10
9 import '../../../lib/src/lock_file.dart';
10 import '../../../lib/src/source_registry.dart';
11 import '../../descriptor.dart' as d; 11 import '../../descriptor.dart' as d;
12 import '../../test_pub.dart'; 12 import '../../test_pub.dart';
13 13
14 main() { 14 main() {
15 initConfig(); 15 initConfig();
16 integration("can use relative path", () { 16 integration("can use relative path", () {
17 d.dir("foo", [ 17 d.dir("foo", [
18 d.libDir("foo"), 18 d.libDir("foo"),
19 d.libPubspec("foo", "0.0.1") 19 d.libPubspec("foo", "0.0.1")
20 ]).create(); 20 ]).create();
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 82
83 schedule(() { 83 schedule(() {
84 var lockfilePath = path.join(sandboxDir, appPath, "pubspec.lock"); 84 var lockfilePath = path.join(sandboxDir, appPath, "pubspec.lock");
85 var lockfile = new LockFile.load(lockfilePath, new SourceRegistry()); 85 var lockfile = new LockFile.load(lockfilePath, new SourceRegistry());
86 var description = lockfile.packages["foo"].description; 86 var description = lockfile.packages["foo"].description;
87 87
88 expect(path.isRelative(description["path"]), isTrue); 88 expect(path.isRelative(description["path"]), isTrue);
89 }); 89 });
90 }); 90 });
91 } 91 }
OLDNEW
« no previous file with comments | « test/get/path/nonexistent_dir_test.dart ('k') | test/global/activate/activate_hosted_after_git_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698