| OLD | NEW |
| 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 import "package:expect/expect.dart"; | |
| 6 | |
| 7 class GettersSettersTest { | 5 class GettersSettersTest { |
| 8 | 6 |
| 9 static int foo; | 7 static int foo; |
| 10 | 8 |
| 11 static testMain() { | 9 static testMain() { |
| 12 A a = new A(); | 10 A a = new A(); |
| 13 a.x = 2; | 11 a.x = 2; |
| 14 Expect.equals(2, a.x); | 12 Expect.equals(2, a.x); |
| 15 Expect.equals(2, a.x_); | 13 Expect.equals(2, a.x_); |
| 16 | 14 |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 } | 140 } |
| 143 | 141 |
| 144 int getIt() { | 142 int getIt() { |
| 145 return super.x_; | 143 return super.x_; |
| 146 } | 144 } |
| 147 } | 145 } |
| 148 | 146 |
| 149 main() { | 147 main() { |
| 150 GettersSettersTest.testMain(); | 148 GettersSettersTest.testMain(); |
| 151 } | 149 } |
| OLD | NEW |