| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 /// Common test code that is run by 3 tests: mirrors_test.dart, | 5 /// Common test code that is run by 3 tests: mirrors_test.dart, |
| 6 /// mirrors_used_test.dart, and static_test.dart. | 6 /// mirrors_used_test.dart, and static_test.dart. |
| 7 library smoke.test.common; | 7 library smoke.test.common; |
| 8 | 8 |
| 9 import 'package:smoke/smoke.dart' as smoke; | 9 import 'package:smoke/smoke.dart' as smoke; |
| 10 import 'package:unittest/unittest.dart'; | 10 import 'package:test/test.dart'; |
| 11 | 11 |
| 12 main() { | 12 main() { |
| 13 test('read value', () { | 13 test('read value', () { |
| 14 var a = new A(); | 14 var a = new A(); |
| 15 expect(smoke.read(a, #i), 42); | 15 expect(smoke.read(a, #i), 42); |
| 16 expect(smoke.read(a, #j), 44); | 16 expect(smoke.read(a, #j), 44); |
| 17 expect(smoke.read(a, #j2), 44); | 17 expect(smoke.read(a, #j2), 44); |
| 18 }); | 18 }); |
| 19 | 19 |
| 20 test('write value', () { | 20 test('write value', () { |
| (...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 434 abstract class L { | 434 abstract class L { |
| 435 int get m; | 435 int get m; |
| 436 incM(); | 436 incM(); |
| 437 } | 437 } |
| 438 | 438 |
| 439 class L2 extends L { | 439 class L2 extends L { |
| 440 int m; | 440 int m; |
| 441 incM() { ++m; } | 441 incM() { ++m; } |
| 442 int n; | 442 int n; |
| 443 } | 443 } |
| OLD | NEW |