OLD | NEW |
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 // Dart test for testing access to private fields. | 5 // Dart test for testing access to private fields. |
6 | 6 |
7 main() { | 7 main() { |
8 testPrivateTopLevel(); | 8 testPrivateTopLevel(); |
9 testPrivateClasses(); | 9 testPrivateClasses(); |
10 } | 10 } |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 Expect.equals(499, c.field1a()); | 81 Expect.equals(499, c.field1a()); |
82 Expect.equals(42, c_field2a(c)); | 82 Expect.equals(42, c_field2a(c)); |
83 Expect.equals(42, c.field2a()); | 83 Expect.equals(42, c.field2a()); |
84 Expect.equals(99, LibOther3.c_field1b(c)); | 84 Expect.equals(99, LibOther3.c_field1b(c)); |
85 Expect.equals(99, c.field1b()); | 85 Expect.equals(99, c.field1b()); |
86 Expect.equals(1024, LibOther3.c_field2b(c)); | 86 Expect.equals(1024, LibOther3.c_field2b(c)); |
87 Expect.equals(1024, c.field2b()); | 87 Expect.equals(1024, c.field2b()); |
88 Expect.equals(499, c.field1c()); | 88 Expect.equals(499, c.field1c()); |
89 Expect.equals(99, c.field1d()); | 89 Expect.equals(99, c.field1d()); |
90 } | 90 } |
OLD | NEW |