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

Unified Diff: sdk/lib/_internal/pub/test/lock_file_test.dart

Issue 26263004: Handle a null dependencies map in lockfile. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sdk/lib/_internal/pub/lib/src/lock_file.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/pub/test/lock_file_test.dart
diff --git a/sdk/lib/_internal/pub/test/lock_file_test.dart b/sdk/lib/_internal/pub/test/lock_file_test.dart
index 493741e5b89ad5192053d824b3a5d4da45d8b97f..b69cce4587c249b8484583376ce9fb2da55f47c9 100644
--- a/sdk/lib/_internal/pub/test/lock_file_test.dart
+++ b/sdk/lib/_internal/pub/test/lock_file_test.dart
@@ -89,6 +89,13 @@ packages:
expect(foo.source, equals('bad'));
});
+ test("allows an empty dependency map", () {
+ var lockFile = new LockFile.parse('''
+packages:
+''', sources);
+ expect(lockFile.packages, isEmpty);
+ });
+
test("throws if the version is missing", () {
expect(() {
new LockFile.parse('''
« no previous file with comments | « sdk/lib/_internal/pub/lib/src/lock_file.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698