| Index: tests/compiler/dart2js/no_duplicate_constructor_body_test.dart
|
| diff --git a/tests/compiler/dart2js/no_duplicate_constructor_body_test.dart b/tests/compiler/dart2js/no_duplicate_constructor_body_test.dart
|
| index 23464d6f601214b64836e34c051120511e370ab6..9bffba24cfb6d5c95a4da05fe79655793f5bc2ce 100644
|
| --- a/tests/compiler/dart2js/no_duplicate_constructor_body_test.dart
|
| +++ b/tests/compiler/dart2js/no_duplicate_constructor_body_test.dart
|
| @@ -16,7 +16,9 @@ main() {
|
|
|
| main() {
|
| String generated = compileAll(CODE);
|
| - RegExp regexp = new RegExp(r'\$.A = {"":');
|
| + RegExp getClassName = new RegExp(r'\$\$.([A-Za-z]) ?= ?\{"":');
|
| + var className = getClassName.firstMatch(generated)[1];
|
| + RegExp regexp = new RegExp('\\\$.($className) ?= ?\\{"":');
|
| Iterator<Match> matches = regexp.allMatches(generated).iterator();
|
| checkNumberOfMatches(matches, 1);
|
| }
|
|
|