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

Side by Side Diff: tests/language/external_test.dart

Issue 2768073002: Format all multitests (Closed)
Patch Set: Created 3 years, 9 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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 class Bar { 5 class Bar {
6 Bar(val); 6 Bar(val);
7 } 7 }
8 8
9 class Foo { 9 class Foo {
10 var x; 10 var x;
(...skipping 16 matching lines...) Expand all
27 external Foo.n22(val) { x = 1; } // //# 22: compile-time error 27 external Foo.n22(val) { x = 1; } // //# 22: compile-time error
28 external factory Foo.n23(val) => new Foo(); // //# 23: compile-time error 28 external factory Foo.n23(val) => new Foo(); // //# 23: compile-time error
29 external Foo.n24(this.x); // //# 24: compile-time error 29 external Foo.n24(this.x); // //# 24: compile-time error
30 external factory Foo.n25(val) = Bar; // //# 25: compile-time error 30 external factory Foo.n25(val) = Bar; // //# 25: compile-time error
31 } 31 }
32 32
33 external int t06(int i) { } // //# 30: compile-time error 33 external int t06(int i) { } // //# 30: compile-time error
34 external int t07(int i) => i + 1; // //# 31: compile-time error 34 external int t07(int i) => i + 1; // //# 31: compile-time error
35 35
36 main() { 36 main() {
37
38 // Ensure Foo class is compiled. 37 // Ensure Foo class is compiled.
39 var foo = new Foo(); 38 var foo = new Foo();
40 39
41 // Try calling an unpatched external function. 40 // Try calling an unpatched external function.
42 new Foo().f10(); // //# 10: continued 41 new Foo().f10(); // //# 10: continued
43 new Foo().f11(); // //# 11: continued 42 new Foo().f11(); // //# 11: continued
44 new Foo().f12(); // //# 12: continued 43 new Foo().f12(); // //# 12: continued
45 Foo.f13(); // //# 13: continued 44 Foo.f13(); // //# 13: continued
46 Foo.f14(); // //# 14: continued 45 Foo.f14(); // //# 14: continued
47 new Foo().f16(); // //# 16: continued 46 new Foo().f16(); // //# 16: continued
48 47
49 // Try calling an unpatched external constructor. 48 // Try calling an unpatched external constructor.
50 new Foo.n20(1); // //# 20: continued 49 new Foo.n20(1); // //# 20: continued
51 new Foo.n21(1); // //# 21: continued 50 new Foo.n21(1); // //# 21: continued
52 new Foo.n22(1); // //# 22: continued 51 new Foo.n22(1); // //# 22: continued
53 new Foo.n23(1); // //# 23: continued 52 new Foo.n23(1); // //# 23: continued
54 new Foo.n24(1); // //# 24: continued 53 new Foo.n24(1); // //# 24: continued
55 new Foo.n25(1); // //# 25: continued 54 new Foo.n25(1); // //# 25: continued
56 55
57 t06(1); // //# 30: continued 56 t06(1); // //# 30: continued
58 t07(1); // //# 31: continued 57 t07(1); // //# 31: continued
59 } 58 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698