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

Side by Side Diff: tests/compiler/dart2js_extra/phi_elimination_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 void bar() { 7 void bar() {
8 var a = 0; 8 var a = 0;
9 var c = 0; 9 var c = 0;
10 10
11 if (a == 0) c = a++; 11 if (a == 0)
12 else c = a--; 12 c = a++;
13 else
14 c = a--;
13 15
14 Expect.equals(1, a); 16 Expect.equals(1, a);
15 Expect.equals(0, c); 17 Expect.equals(0, c);
16 18
17 if (a == 0) c = a++; 19 if (a == 0)
18 else c = a--; 20 c = a++;
21 else
22 c = a--;
19 23
20 Expect.equals(0, a); 24 Expect.equals(0, a);
21 Expect.equals(1, c); 25 Expect.equals(1, c);
22 } 26 }
23 27
24 void foo() { 28 void foo() {
25 var a = 0; 29 var a = 0;
26 var c = 0; 30 var c = 0;
27 31
28 if (a == 0) { 32 if (a == 0) {
(...skipping 16 matching lines...) Expand all
45 } 49 }
46 50
47 Expect.equals(0, a); 51 Expect.equals(0, a);
48 Expect.equals(1, c); 52 Expect.equals(1, c);
49 } 53 }
50 54
51 main() { 55 main() {
52 foo(); 56 foo();
53 bar(); 57 bar();
54 } 58 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js_extra/panda_test.dart ('k') | tests/compiler/dart2js_extra/phi_gvn_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698