Index: tests/compiler/dart2js/identity_test.dart |
diff --git a/tests/compiler/dart2js/identity_test.dart b/tests/compiler/dart2js/identity_test.dart |
index 2b72fe5b4deb6e4dc405684626d24eacf440cce3..1e47d5878f0ee2963ad2c1ef82121ea55b234ec1 100644 |
--- a/tests/compiler/dart2js/identity_test.dart |
+++ b/tests/compiler/dart2js/identity_test.dart |
@@ -18,12 +18,11 @@ main() { |
// Check that no boolify code is generated. |
RegExp regexp = new RegExp("=== true"); |
- Iterator matches = regexp.allMatches(generated).iterator(); |
+ Iterator matches = regexp.allMatches(generated).iterator; |
Expect.isFalse(matches.hasNext); |
regexp = new RegExp("==="); |
- matches = regexp.allMatches(generated).iterator(); |
- Expect.isTrue(matches.hasNext); |
- matches.next(); |
- Expect.isFalse(matches.hasNext); |
+ matches = regexp.allMatches(generated).iterator; |
+ Expect.isTrue(matches.moveNext()); |
+ Expect.isFalse(matches.moveNext()); |
} |