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

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

Issue 10698092: Fix unparsing of prefix increments. (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
« 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 a16d892b3ff73b36a17026e9d167083757a51d04..a810b34caa79d267c299f7eb65ded1f4d077f234 100644
--- a/tests/compiler/dart2js/unparser_test.dart
+++ b/tests/compiler/dart2js/unparser_test.dart
@@ -88,6 +88,12 @@ testNativeMethods() {
testUnparseMember('foo()native "this.x = 41";');
}
+testPrefixIncrements() {
+ testUnparse('++i;');
+ testUnparse('++a[i];');
+ testUnparse('++a[++b[i]];');
+}
+
testSimpleFileUnparse() {
final src = '''
should_be_dropped() {
@@ -112,5 +118,6 @@ main() {
testClosure();
testIndexedOperatorDecl();
testNativeMethods();
+ testPrefixIncrements();
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