| Index: tests/compiler/dart2js/no_constructor_body_test.dart
|
| diff --git a/tests/compiler/dart2js/no_constructor_body_test.dart b/tests/compiler/dart2js/no_constructor_body_test.dart
|
| index 3588e0daa910687d2b428bd17c337e15e452ce07..8ea4b9ba9468a65d956a13f2109fc738451eb500 100644
|
| --- a/tests/compiler/dart2js/no_constructor_body_test.dart
|
| +++ b/tests/compiler/dart2js/no_constructor_body_test.dart
|
| @@ -17,6 +17,7 @@ main() {
|
|
|
| main() {
|
| String generated = compileAll(TEST);
|
| - Expect.isTrue(
|
| - generated.contains('\$.A = {"": [],\n "super": "Object"\n}'));
|
| + var re = new RegExp(
|
| + r'\$.[A-Za-z0-9]+ ?= ?\{"":\s*\[\],\s*"super": ?"[A-Za-z0-9]+"\s*\}');
|
| + Expect.isTrue(re.hasMatch(generated));
|
| }
|
|
|