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

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

Issue 15777002: Use indentation for maps in lockfile. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Revise. Created 7 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 side-by-side diff with in-line comments
Download patch
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 8b05d9d06b6006ff489a53d512958f0f3d52958d..2145bb18a90c9ef83adc597ef27829a93903765b 100644
--- a/sdk/lib/_internal/pub/test/lock_file_test.dart
+++ b/sdk/lib/_internal/pub/test/lock_file_test.dart
@@ -188,29 +188,6 @@ packages:
}
}));
});
-
- test('lockfile is alphabetized by package name', () {
- var testNames = ['baz', 'Qwe', 'Q', 'B', 'Bar', 'bar', 'foo'];
- testNames.forEach((name) {
- lockfile.packages[name] = new PackageId(name, mockSource.name,
- new Version.parse('5.5.5'), '$name desc');
- });
-
- expect(lockfile.serialize(),
- '# Generated by pub\n'
- '# See http://pub.dartlang.org/doc/glossary.html#lockfile\n'
- '\n'
- '{"packages":{'
- '"B":{"version":"5.5.5","source":"mock","description":"B desc"},'
- '"Bar":{"version":"5.5.5","source":"mock","description":"Bar desc"},'
- '"Q":{"version":"5.5.5","source":"mock","description":"Q desc"},'
- '"Qwe":{"version":"5.5.5","source":"mock","description":"Qwe desc"},'
- '"bar":{"version":"5.5.5","source":"mock","description":"bar desc"},'
- '"baz":{"version":"5.5.5","source":"mock","description":"baz desc"},'
- '"foo":{"version":"5.5.5","source":"mock","description":"foo desc"}}}'
- '\n'
- );
- });
});
});
}

Powered by Google App Engine
This is Rietveld 408576698