Index: tests/compiler/dart2js/identity_test.dart |
diff --git a/tests/compiler/dart2js/identity_test.dart b/tests/compiler/dart2js/identity_test.dart |
index 6e25ea483c4512a8f23a60a39236f573f50b22c3..f534e29887df9de6fdd034a227608c347add78db 100644 |
--- a/tests/compiler/dart2js/identity_test.dart |
+++ b/tests/compiler/dart2js/identity_test.dart |
@@ -17,15 +17,14 @@ bool foo(bar) { |
main() { |
asyncTest(() => compile(TEST_ONE, entry: 'foo', check: (String generated) { |
+ // Check that no boolify code is generated. |
+ RegExp regexp = new RegExp("=== true"); |
+ Iterator matches = regexp.allMatches(generated).iterator; |
+ Expect.isFalse(matches.moveNext()); |
- // Check that no boolify code is generated. |
- RegExp regexp = new RegExp("=== true"); |
- Iterator matches = regexp.allMatches(generated).iterator; |
- Expect.isFalse(matches.moveNext()); |
- |
- regexp = new RegExp("==="); |
- matches = regexp.allMatches(generated).iterator; |
- Expect.isTrue(matches.moveNext()); |
- Expect.isFalse(matches.moveNext()); |
- })); |
+ regexp = new RegExp("==="); |
+ matches = regexp.allMatches(generated).iterator; |
+ Expect.isTrue(matches.moveNext()); |
+ Expect.isFalse(matches.moveNext()); |
+ })); |
} |