OLD | NEW |
---|---|
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'; | |
6 import 'package:scheduled_test/scheduled_test.dart'; | 7 import 'package:scheduled_test/scheduled_test.dart'; |
7 import 'package:unittest/unittest.dart'; | 8 import 'package:unittest/unittest.dart'; |
8 | 9 |
9 import '../../../lib/src/lock_file.dart'; | 10 import 'package:pub/src/source_registry.dart'; |
Bob Nystrom
2015/05/22 00:05:17
With the above.
nweiz
2015/05/22 00:14:24
Done.
| |
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 Loading... | |
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 } |
OLD | NEW |