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

Unified Diff: utils/tests/pub/test_pub.dart

Issue 11267018: Make getKeys, getValues getters (keys, values). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update status files with co19 issue number. Created 8 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 | « utils/testrunner/standard_test_runner.dart ('k') | utils/tests/pub/version_solver_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/tests/pub/test_pub.dart
diff --git a/utils/tests/pub/test_pub.dart b/utils/tests/pub/test_pub.dart
index 87fe686af4dd4a150afa00c8f3309dbbb42ee93d..8c8dd80330eab28902c85afff729250d9fd4ab74 100644
--- a/utils/tests/pub/test_pub.dart
+++ b/utils/tests/pub/test_pub.dart
@@ -192,8 +192,8 @@ void servePackages(List<Map> pubspecs) {
}
_servedPackageDir.contents.clear();
- for (var name in _servedPackages.getKeys()) {
- var versions = _servedPackages[name].getKeys();
+ for (var name in _servedPackages.keys) {
+ var versions = _servedPackages[name].keys;
_servedPackageDir.contents.addAll([
file('$name.json',
JSON.stringify({'versions': versions})),
@@ -380,7 +380,7 @@ Future<Map> _dependencyListToMap(List<Map> dependencies) {
return _awaitObject(dependencies).transform((resolvedDependencies) {
var result = <String, Map>{};
for (var dependency in resolvedDependencies) {
- var keys = dependency.getKeys().filter((key) => key != "version");
+ var keys = dependency.keys.filter((key) => key != "version");
var sourceName = only(keys);
var source;
switch (sourceName) {
« no previous file with comments | « utils/testrunner/standard_test_runner.dart ('k') | utils/tests/pub/version_solver_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698