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

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

Issue 80053004: Nicer pretty printing of jsAst object literals. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated tests Created 7 years, 1 month 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 0a3b388ce1f32e753dfcb9492b54afcbd1f31546..ddafc6c6220d2c29f62e75c5d6edc6963278e6a8 100644
--- a/tests/compiler/dart2js/no_constructor_body_test.dart
+++ b/tests/compiler/dart2js/no_constructor_body_test.dart
@@ -19,6 +19,7 @@ main() {
main() {
asyncTest(() => compileAll(TEST).then((generated) {
- Expect.isTrue(generated.contains('A: {"": "Object;", static:'));
+ Expect.isTrue(generated.contains(
+ new RegExp('A: {[ \n]*"": "Object;",[ \n]*static:')));
}));
}
« no previous file with comments | « tests/compiler/dart2js/class_codegen_test.dart ('k') | tests/compiler/dart2js/no_duplicate_constructor_body_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698