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

Unified Diff: tests/corelib/list_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/corelib/list_iterators_test.dart ('k') | tests/corelib/reg_exp_all_matches_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/corelib/list_test.dart
diff --git a/tests/corelib/list_test.dart b/tests/corelib/list_test.dart
index dc2b82a91f8dd51d1e87b39b614dc3c00bec725a..672504f123e1619d68b75ba7f1f7f0b922bfd0cd 100644
--- a/tests/corelib/list_test.dart
+++ b/tests/corelib/list_test.dart
@@ -12,7 +12,7 @@ class ListTest {
static void expectValues(list, val1, val2, val3, val4) {
Expect.equals(true, list.length == 4);
Expect.equals(true, list.length == 4);
- Expect.equals(true, !list.isEmpty());
+ Expect.equals(true, !list.isEmpty);
Expect.equals(list[0], val1);
Expect.equals(list[1], val2);
Expect.equals(list[2], val3);
@@ -98,11 +98,11 @@ class ListTest {
static void testExpandableList() {
List list = new List();
- Expect.equals(true, list.isEmpty());
+ Expect.equals(true, list.isEmpty);
Expect.equals(list.length, 0);
list.add(4);
Expect.equals(1, list.length);
- Expect.equals(true, !list.isEmpty());
+ Expect.equals(true, !list.isEmpty);
Expect.equals(list.length, 1);
Expect.equals(list.length, 1);
Expect.equals(list.removeLast(), 4);
@@ -139,7 +139,7 @@ class ListTest {
list.clear();
Expect.equals(list.length, 0);
Expect.equals(list.length, 0);
- Expect.equals(true, list.isEmpty());
+ Expect.equals(true, list.isEmpty);
}
}
« no previous file with comments | « tests/corelib/list_iterators_test.dart ('k') | tests/corelib/reg_exp_all_matches_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698