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

Unified Diff: tests/language/compile_time_constant_a_test.dart

Issue 11238035: Make isEmpty a getter. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update status file 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 | « tests/html/xmlelement_test.dart ('k') | tests/language/compile_time_constant_b_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/compile_time_constant_a_test.dart
diff --git a/tests/language/compile_time_constant_a_test.dart b/tests/language/compile_time_constant_a_test.dart
index daa23a697e2bcbefbb70550f2f2a2f41e1da533a..30dd6785ab4650609947c68d91fc5a5d026c9e50 100644
--- a/tests/language/compile_time_constant_a_test.dart
+++ b/tests/language/compile_time_constant_a_test.dart
@@ -30,7 +30,7 @@ main() {
});
Expect.listEquals(['a'], seenKeys);
Expect.listEquals([499], seenValues);
- Expect.isFalse(m1.isEmpty());
+ Expect.isFalse(m1.isEmpty);
Expect.equals(1, m1.length);
Expect.throws(() => m1.remove('a'), isUnsupportedError);
Expect.throws(() => m1.remove('b'), isUnsupportedError);
@@ -60,7 +60,7 @@ main() {
});
Expect.listEquals(['a', 'b'], seenKeys);
Expect.listEquals([499, 42], seenValues);
- Expect.isFalse(m2.isEmpty());
+ Expect.isFalse(m2.isEmpty);
Expect.equals(2, m2.length);
Expect.throws(() => m2.remove('a'), isUnsupportedError);
Expect.throws(() => m2.remove('b'), isUnsupportedError);
@@ -93,7 +93,7 @@ main() {
Expect.isTrue(m1 === m6);
- Expect.isTrue(m7.isEmpty());
+ Expect.isTrue(m7.isEmpty);
Expect.equals(0, m7.length);
Expect.equals(null, m7['b']);
Expect.listEquals([], m7.getKeys());
« no previous file with comments | « tests/html/xmlelement_test.dart ('k') | tests/language/compile_time_constant_b_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698