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

Unified Diff: tests/corelib/list_iterators_test.dart

Issue 11230011: Make hasNext a getter instead of a method. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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
Index: tests/corelib/list_iterators_test.dart
diff --git a/tests/corelib/list_iterators_test.dart b/tests/corelib/list_iterators_test.dart
index 91421ffe83b4a985a7eed942651a478ed22970c9..5b65d5b088f55794c5cc5596a94b07726d8c1d04 100644
--- a/tests/corelib/list_iterators_test.dart
+++ b/tests/corelib/list_iterators_test.dart
@@ -5,12 +5,12 @@
class ListIteratorsTest {
static void checkListIterator(List a) {
Iterator it = a.iterator();
- Expect.equals(false, it.hasNext() == a.isEmpty());
+ Expect.equals(false, it.hasNext == a.isEmpty());
for (int i = 0; i < a.length; i++) {
- Expect.equals(true, it.hasNext());
+ Expect.equals(true, it.hasNext);
var elem = it.next();
}
- Expect.equals(false, it.hasNext());
+ Expect.equals(false, it.hasNext);
bool exceptionCaught = false;
try {
var eleme = it.next();
@@ -31,11 +31,11 @@ class ListIteratorsTest {
checkListIterator(g);
Iterator it = g.iterator();
- Expect.equals(true, it.hasNext());
+ Expect.equals(true, it.hasNext);
g.removeLast();
- Expect.equals(true, it.hasNext());
+ Expect.equals(true, it.hasNext);
g.removeLast();
- Expect.equals(false, it.hasNext());
+ Expect.equals(false, it.hasNext);
g.addAll([10, 20]);
int sum = 0;

Powered by Google App Engine
This is Rietveld 408576698