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

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

Issue 2990223002: Reformat untouched files. (Closed)
Patch Set: Created 3 years, 4 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/js_parser_statements_test.dart
diff --git a/tests/compiler/dart2js/js_parser_statements_test.dart b/tests/compiler/dart2js/js_parser_statements_test.dart
index 709b95730a571dd5537bc2763c27dd9490724854..775e2e255b4c296fe53c5ab75c4061fb1257d34f 100644
--- a/tests/compiler/dart2js/js_parser_statements_test.dart
+++ b/tests/compiler/dart2js/js_parser_statements_test.dart
@@ -158,23 +158,18 @@ do {
'do #; while ( # )', [stm, 'a'], 'do\n foo();\nwhile (a);'),
testStatement('switch (#) {}', [eOne], 'switch (1) {\n}'),
- testStatement(
- '''
+ testStatement('''
switch (#) {
case #: { # }
- }''',
- [eTrue, eOne, block12],
+ }''', [eTrue, eOne, block12],
'switch (true) {\n case 1:\n 1;\n 2;\n}'),
- testStatement(
- '''
+ testStatement('''
switch (#) {
case #: { # }
break;
case #: { # }
default: { # }
- }''',
- [eTrue, eOne, block12, eTwo, block12, stm],
- '''
+ }''', [eTrue, eOne, block12, eTwo, block12, stm], '''
switch (true) {
case 1:
1;
@@ -479,19 +474,13 @@ switch (true) {
testStatement('label: {label2: {break label;}}', [],
'label:\n label2:\n break label;\n'),
// Test dangling else:
- testStatement(
- 'if (a) {if (b) {foo1();}} else {foo2();}',
- [],
- """
+ testStatement('if (a) {if (b) {foo1();}} else {foo2();}', [], """
if (a) {
if (b)
foo1();
} else
foo2();"""),
- testStatement(
- 'if (a) {if (b) {foo1();} else {foo2();}}',
- [],
- """
+ testStatement('if (a) {if (b) {foo1();} else {foo2();}}', [], """
if (a)
if (b)
foo1();
@@ -499,9 +488,7 @@ if (a)
foo2();
"""),
testStatement(
- 'if (a) {if (b) {foo1();} else {foo2();}} else {foo3();}',
- [],
- """
+ 'if (a) {if (b) {foo1();} else {foo2();}} else {foo3();}', [], """
if (a)
if (b)
foo1();
@@ -510,9 +497,7 @@ if (a)
else
foo3();"""),
testStatement(
- 'if (a) {while (true) if (b) {foo1();}} else {foo2();}',
- [],
- """
+ 'if (a) {while (true) if (b) {foo1();}} else {foo2();}', [], """
if (a) {
while (true)
if (b)
« no previous file with comments | « tests/compiler/dart2js/interop_anonymous_unreachable_test.dart ('k') | tests/compiler/dart2js/jsinterop/world_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698