| Index: tests/compiler/dart2js/type_inference5_test.dart
|
| diff --git a/tests/compiler/dart2js/type_inference5_test.dart b/tests/compiler/dart2js/type_inference5_test.dart
|
| index 4bf5caa7e6c7fc66a2b96aacc037e74eee372a7d..7d6ef4c1e27af40038ddfb295ea1cc5d9a127abf 100644
|
| --- a/tests/compiler/dart2js/type_inference5_test.dart
|
| +++ b/tests/compiler/dart2js/type_inference5_test.dart
|
| @@ -17,17 +17,15 @@ foo(j) {
|
|
|
| main() {
|
| asyncTest(() => compile(TEST_ONE, entry: 'foo', check: (String generated) {
|
| -
|
| - // Test for absence of an illegal argument exception. This means that the
|
| - // arguments are known to be integers.
|
| - Expect.isFalse(generated.contains('iae'));
|
| - // Also make sure that we are not just in bailout mode without speculative
|
| - // types by grepping for the integer-bailout check on argument j.
|
| - var argname =
|
| - new RegExp(r'function(?: [a-z]+)?\(([a-zA-Z0-9_]+)\)')
|
| + // Test for absence of an illegal argument exception. This means that the
|
| + // arguments are known to be integers.
|
| + Expect.isFalse(generated.contains('iae'));
|
| + // Also make sure that we are not just in bailout mode without speculative
|
| + // types by grepping for the integer-bailout check on argument j.
|
| + var argname = new RegExp(r'function(?: [a-z]+)?\(([a-zA-Z0-9_]+)\)')
|
| .firstMatch(generated)[1];
|
| - print(argname);
|
| - RegExp regexp = new RegExp(getIntTypeCheck("(i|$argname)"));
|
| - Expect.isTrue(regexp.hasMatch(generated));
|
| - }));
|
| + print(argname);
|
| + RegExp regexp = new RegExp(getIntTypeCheck("(i|$argname)"));
|
| + Expect.isTrue(regexp.hasMatch(generated));
|
| + }));
|
| }
|
|
|