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

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

Issue 949753004: Avoid printing braces for one-statement blocks in js-printer. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: label: break label; => ; and update unittest Created 5 years, 10 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 | « pkg/js_ast/lib/src/printer.dart ('k') | tests/compiler/dart2js/js_parser_statements_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/async_await_js_transform_test.dart
diff --git a/tests/compiler/dart2js/async_await_js_transform_test.dart b/tests/compiler/dart2js/async_await_js_transform_test.dart
index ce0cac190a735b7028cbf991752338c8916b722b..e427ea05faf2496e879cb2aa239306ced295e6ab 100644
--- a/tests/compiler/dart2js/async_await_js_transform_test.dart
+++ b/tests/compiler/dart2js/async_await_js_transform_test.dart
@@ -101,7 +101,7 @@ function(b) {
case 8:
// while condition
__handler = 10;
- inner: {
+ inner:
while (true) {
__next = [6];
// goto finally
@@ -109,7 +109,6 @@ function(b) {
break __outer1;
break;
}
- }
while (true) {
__next = [1, 4];
// goto finally
@@ -315,9 +314,9 @@ function(d2) {
c = __result;
d = foo1() || foo2();
__temp1 = foo1();
- if (__temp1) {
+ if (__temp1)
__result = __temp1;
- } else {
+ else {
// goto then
__goto = 10;
break;
@@ -344,9 +343,9 @@ function(d2) {
case 16:
// returning from await.
__temp1 = __result;
- if (__temp1) {
+ if (__temp1)
__result = __temp1;
- } else {
+ else {
// goto then
__goto = 14;
break;
@@ -984,9 +983,9 @@ function(x, y, k) {
break;
case 14:
// case
- if (a) {
+ if (a)
throw new Error();
- } else {
+ else {
// goto while condition
__goto = 3;
break;
« no previous file with comments | « pkg/js_ast/lib/src/printer.dart ('k') | tests/compiler/dart2js/js_parser_statements_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698