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

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: Remove unused variable. 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/compiler/dart2js_extra/for_in_test.dart ('k') | tests/corelib/queue_iterator_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « tests/compiler/dart2js_extra/for_in_test.dart ('k') | tests/corelib/queue_iterator_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698