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

Unified Diff: editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/internal/model/testsource/CoreRuntimeTypesTest.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 | « no previous file | lib/compiler/implementation/closure.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/internal/model/testsource/CoreRuntimeTypesTest.dart
diff --git a/editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/internal/model/testsource/CoreRuntimeTypesTest.dart b/editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/internal/model/testsource/CoreRuntimeTypesTest.dart
index 2af89a3a85cc8c19ce94d5612bdec5ab4e55b316..0a882bcfc3885107d5e9c50c29d9802ca01cb365 100644
--- a/editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/internal/model/testsource/CoreRuntimeTypesTest.dart
+++ b/editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/internal/model/testsource/CoreRuntimeTypesTest.dart
@@ -212,20 +212,20 @@ class CoreRuntimeTypesTest {
assertEquals(d.containsValue(3), false);
assertEquals(d.containsKey('a'), true);
assertEquals(d.containsKey('c'), false);
- assertEquals(d.getKeys().length, 2);
- assertEquals(d.getValues().length, 2);
+ assertEquals(d.keys.length, 2);
+ assertEquals(d.values.length, 2);
assertEquals(d.remove('c'), null);
assertEquals(d.remove('b'), 2);
- assertEquals(d.getKeys(), ['a']);
- assertEquals(d.getValues(), [1]);
+ assertEquals(d.keys, ['a']);
+ assertEquals(d.values, [1]);
d['c'] = 3;
d['f'] = 4;
- assertEquals(d.getKeys().length, 3);
- assertEquals(d.getValues().length, 3);
- assertEquals(d.getKeys(), ['a', 'c', 'f']);
- assertEquals(d.getValues(), [1, 3, 4]);
+ assertEquals(d.keys.length, 3);
+ assertEquals(d.values.length, 3);
+ assertEquals(d.keys, ['a', 'c', 'f']);
+ assertEquals(d.values, [1, 3, 4]);
var count = 0;
d.forEach(function(key, value) {
@@ -239,8 +239,8 @@ class CoreRuntimeTypesTest {
assertEquals(d.containsValue(3), false);
assertEquals(d.containsKey('a'), true);
assertEquals(d.containsKey('c'), false);
- assertEquals(d.getKeys().length, 2);
- assertEquals(d.getValues().length, 2);
+ assertEquals(d.keys.length, 2);
+ assertEquals(d.values.length, 2);
d['g'] = null;
assertEquals(d.containsKey('g'), true);
« no previous file with comments | « no previous file | lib/compiler/implementation/closure.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698