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

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

Issue 10689104: Fix const unparse. Example: (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: add tests 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
« no previous file with comments | « lib/compiler/implementation/tree/unparser.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/unparser_test.dart
diff --git a/tests/compiler/dart2js/unparser_test.dart b/tests/compiler/dart2js/unparser_test.dart
index a810b34caa79d267c299f7eb65ded1f4d077f234..faaa5b10ab4c14a787698a6a8f5660ca202bf2f8 100644
--- a/tests/compiler/dart2js/unparser_test.dart
+++ b/tests/compiler/dart2js/unparser_test.dart
@@ -94,6 +94,10 @@ testPrefixIncrements() {
testUnparse('++a[++b[i]];');
}
+testConstParameterModifier() {
Anton Muhin 2012/07/06 10:22:46 please, add tests for: foo([var a = const {}]) {}
Roman 2012/07/06 11:46:05 Done. And I reverted the case for NewExpression.
+ testUnparse('foo([var a=const []]){}');
+}
+
testSimpleFileUnparse() {
final src = '''
should_be_dropped() {
@@ -119,5 +123,6 @@ main() {
testIndexedOperatorDecl();
testNativeMethods();
testPrefixIncrements();
+ testConstParameterModifier();
testSimpleFileUnparse();
}
« no previous file with comments | « lib/compiler/implementation/tree/unparser.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698