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