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

Unified Diff: tests/compiler/dart2js/no_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_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));
}

Powered by Google App Engine
This is Rietveld 408576698