Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(453)

Unified Diff: tests/compiler/dart2js/no_duplicate_constructor_body_test.dart

Issue 11265020: Minifying renamer for classes, methods and instance variables. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
}

Powered by Google App Engine
This is Rietveld 408576698