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

Side by Side Diff: tests/language/private_main.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) 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 // Dart test for testing access to private fields. 4 // Dart test for testing access to private fields.
5 5
6 part of Private3Test.dart; 6 part of Private3Test.dart;
7 7
8 main() { 8 main() {
9 PrivateMain.main(); 9 PrivateMain.main();
10 } 10 }
11 11
12 class PrivateMain { 12 class PrivateMain {
13
14 static const _myPrecious = "A Ring"; 13 static const _myPrecious = "A Ring";
15 14
16 static accessMyPrivates() { 15 static accessMyPrivates() {
17 var value = 0; 16 var value = 0;
18 try { 17 try {
19 value = _myPrecious; 18 value = _myPrecious;
20 } catch (e) { 19 } catch (e) {
21 value = -1; 20 value = -1;
22 } 21 }
23 Expect.equals("A Ring", value); 22 Expect.equals("A Ring", value);
(...skipping 26 matching lines...) Expand all
50 } 49 }
51 Expect.equals(-1, value); 50 Expect.equals(-1, value);
52 } 51 }
53 52
54 static main() { 53 static main() {
55 accessMyPrivates(); 54 accessMyPrivates();
56 accessMyLibPrivates(); 55 accessMyLibPrivates();
57 accessOtherLibPrivates(); 56 accessOtherLibPrivates();
58 } 57 }
59 } 58 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698