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

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

Issue 10752002: support unparsing of "new Object()": (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 5 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/unparser_test.dart
diff --git a/tests/compiler/dart2js/unparser_test.dart b/tests/compiler/dart2js/unparser_test.dart
index 0f963acfb7bb22087d41653c94290eef004be194..523d0c96a7e6ca735a017fc2aa0810eb27b7a720 100644
--- a/tests/compiler/dart2js/unparser_test.dart
+++ b/tests/compiler/dart2js/unparser_test.dart
@@ -123,6 +123,10 @@ testTopLevelField() {
testDart2Dart(src, (String s) => Expect.equals(src, s));
}
+testSimpleObjectInstantiation() {
+ testUnparse('main(){new Object();}');
Anton Muhin 2012/07/09 18:31:26 sorry, what you stopped to output now, element for
Roman 2012/07/10 03:20:29 I don't think I understand the question.
Anton Muhin 2012/07/10 06:56:30 Sorry, let me rephrase it. In the description of
+}
+
main() {
testGenericTypes();
testForLoop();
@@ -133,5 +137,6 @@ main() {
testPrefixIncrements();
testConstModifier();
testSimpleFileUnparse();
+ testSimpleObjectInstantiation();
testTopLevelField();
}

Powered by Google App Engine
This is Rietveld 408576698