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

Unified Diff: tests/compiler/dart2js/identity_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/gvn_test.dart ('k') | tests/compiler/dart2js/mock_compiler.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/identity_test.dart
diff --git a/tests/compiler/dart2js/identity_test.dart b/tests/compiler/dart2js/identity_test.dart
index 40d6a0557f4c9d53199d009fdd2d02cbf7209b3d..348c1bf71c65b256be071d8bf06a2e39a2329246 100644
--- a/tests/compiler/dart2js/identity_test.dart
+++ b/tests/compiler/dart2js/identity_test.dart
@@ -19,11 +19,11 @@ main() {
// Check that no boolify code is generated.
RegExp regexp = const RegExp("=== true");
Iterator matches = regexp.allMatches(generated).iterator();
- Expect.isFalse(matches.hasNext());
+ Expect.isFalse(matches.hasNext);
regexp = const RegExp("===");
matches = regexp.allMatches(generated).iterator();
- Expect.isTrue(matches.hasNext());
+ Expect.isTrue(matches.hasNext);
matches.next();
- Expect.isFalse(matches.hasNext());
+ Expect.isFalse(matches.hasNext);
}
« no previous file with comments | « tests/compiler/dart2js/gvn_test.dart ('k') | tests/compiler/dart2js/mock_compiler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698