OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 // This test uses the multi-test "ok" feature to create two positive tests from | |
6 // one file. One of these tests fail on dart2js, but pass on the VM, or vice | |
7 // versa. | |
8 // TODO(ahe): When both implementations agree, remove the multi-test parts. | |
9 | |
10 library test.mixin_application_test; | 5 library test.mixin_application_test; |
11 | 6 |
| 7 @MirrorsUsed(targets: "test.mixin_application_test") |
12 import 'dart:mirrors'; | 8 import 'dart:mirrors'; |
13 | 9 |
14 import 'package:expect/expect.dart'; | 10 import 'package:expect/expect.dart'; |
15 | 11 |
16 import 'model.dart'; | 12 import 'model.dart'; |
17 import 'stringify.dart'; | 13 import 'stringify.dart'; |
18 | 14 |
19 class Mixin { | 15 class Mixin { |
20 int i; | 16 int i; |
21 m() {} | 17 m() {} |
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
336 testMixin(); | 332 testMixin(); |
337 testMixin2(); | 333 testMixin2(); |
338 testMixinApplication(); | 334 testMixinApplication(); |
339 testMixinApplicationA(); | 335 testMixinApplicationA(); |
340 testUnusedMixinApplication(); | 336 testUnusedMixinApplication(); |
341 testSubclass(); | 337 testSubclass(); |
342 testSubclass2(); | 338 testSubclass2(); |
343 testSubclassA(); | 339 testSubclassA(); |
344 testSubclass2A(); | 340 testSubclass2A(); |
345 } | 341 } |
OLD | NEW |