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

Side by Side Diff: tests/language_strong/library12.dart

Issue 2771453003: Format all tests. (Closed)
Patch Set: Format files Created 3 years, 8 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 5
6 library library12.dart; 6 library library12.dart;
7 7
8 // TODO(jmesserly): is this supposed to be here? 8 // TODO(jmesserly): is this supposed to be here?
9 import 'package:expect/expect.dart'; 9 import 'package:expect/expect.dart';
10 10
11 import "library11.dart"; 11 import "library11.dart";
12
12 class Library12 { 13 class Library12 {
13 Library12(this.fld); 14 Library12(this.fld);
14 Library12.other(fld, multiplier) { 15 Library12.other(fld, multiplier) {
15 this.fld = fld*multiplier; 16 this.fld = fld * multiplier;
16 } 17 }
17 func() { 18 func() {
18 return 2; 19 return 2;
19 } 20 }
21
20 var fld; 22 var fld;
21 static static_func() { 23 static static_func() {
22 var result = 0; 24 var result = 0;
23 var obj = new Library11(4); 25 var obj = new Library11(4);
24 result = obj.fld; 26 result = obj.fld;
25 Expect.equals(4, result); 27 Expect.equals(4, result);
26 result += obj.func(); 28 result += obj.func();
27 Expect.equals(7, result); 29 Expect.equals(7, result);
28 result += Library11.static_func(); 30 result += Library11.static_func();
29 Expect.equals(9, result); 31 Expect.equals(9, result);
30 result += Library11.static_fld; 32 result += Library11.static_fld;
31 Expect.equals(10, result); 33 Expect.equals(10, result);
32 Expect.equals(100, top_level11); 34 Expect.equals(100, top_level11);
33 Expect.equals(200, top_level_func11()); 35 Expect.equals(200, top_level_func11());
34 return 3; 36 return 3;
35 } 37 }
38
36 static var static_fld = 4; 39 static var static_fld = 4;
37 } 40 }
38 41
39 abstract class Library12Interface { 42 abstract class Library12Interface {
40 Library12 addObjects(Library12 value1, Library12 value2); 43 Library12 addObjects(Library12 value1, Library12 value2);
41 } 44 }
42 45
43 const int top_level12 = 10; 46 const int top_level12 = 10;
44 top_level_func12() { 47 top_level_func12() {
45 return 20; 48 return 20;
46 } 49 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698