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

Side by Side Diff: tests/compiler/dart2js_extra/if_test.dart

Issue 2345083003: dart2js: run dartfmt on tests (Closed)
Patch Set: revert another multipart test Created 4 years, 3 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import "package:expect/expect.dart"; 5 import "package:expect/expect.dart";
6 6
7 int if1() { 7 int if1() {
8 if (true) { 8 if (true) {
9 return 499; 9 return 499;
10 } 10 }
(...skipping 21 matching lines...) Expand all
32 if (true) { 32 if (true) {
33 return 499; 33 return 499;
34 } else { 34 } else {
35 return 42; 35 return 42;
36 } 36 }
37 } 37 }
38 38
39 int if5() { 39 int if5() {
40 if (true) { 40 if (true) {
41 if (false) return 42; 41 if (false) return 42;
42 } else { 42 } else {}
43 }
44 return 499; 43 return 499;
45 } 44 }
46 45
47 int if6() { 46 int if6() {
48 if (true) { 47 if (true) {
49 if (false) return 42; 48 if (false) return 42;
50 } 49 }
51 return 499; 50 return 499;
52 } 51 }
53 52
54 void main() { 53 void main() {
55 Expect.equals(499, if1()); 54 Expect.equals(499, if1());
56 Expect.equals(499, if2()); 55 Expect.equals(499, if2());
57 Expect.equals(499, if3()); 56 Expect.equals(499, if3());
58 Expect.equals(499, if4()); 57 Expect.equals(499, if4());
59 Expect.equals(499, if5()); 58 Expect.equals(499, if5());
60 Expect.equals(499, if6()); 59 Expect.equals(499, if6());
61 } 60 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js_extra/if_null_test.dart ('k') | tests/compiler/dart2js_extra/inference_nsm_mirrors_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698