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

Unified Diff: tests/compiler/dart2js/compiler_helper.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/code_motion_test.dart ('k') | tests/compiler/dart2js/gvn_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/compiler_helper.dart
diff --git a/tests/compiler/dart2js/compiler_helper.dart b/tests/compiler/dart2js/compiler_helper.dart
index 0caec0e1978759091c094aa0daf0f6c5e562431c..6b679709370b3e77044f1e52cb97fd07bab53db5 100644
--- a/tests/compiler/dart2js/compiler_helper.dart
+++ b/tests/compiler/dart2js/compiler_helper.dart
@@ -77,10 +77,10 @@ String getNumberTypeCheck(String variable) {
bool checkNumberOfMatches(Iterator it, int nb) {
for (int i = 0; i < nb; i++) {
- Expect.isTrue(it.hasNext(), "Found less than $nb matches");
+ Expect.isTrue(it.hasNext, "Found less than $nb matches");
it.next();
}
- Expect.isFalse(it.hasNext(), "Found more than $nb matches");
+ Expect.isFalse(it.hasNext, "Found more than $nb matches");
}
void compileAndMatch(String code, String entry, RegExp regexp) {
« no previous file with comments | « tests/compiler/dart2js/code_motion_test.dart ('k') | tests/compiler/dart2js/gvn_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698