Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(103)

Side by Side Diff: tests/lib/mirrors/mixin_application_test.dart

Issue 27369003: Update mirror tests to new mixin application syntax. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tests/lib/mirrors/generic_mixin_test.dart ('k') | tests/lib/mirrors/mixin_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 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 6 // one file. One of these tests fail on dart2js, but pass on the VM, or vice
7 // versa. 7 // versa.
8 // TODO(ahe): When both implementations agree, remove the multi-test parts. 8 // TODO(ahe): When both implementations agree, remove the multi-test parts.
9 9
10 library test.mixin_application_test; 10 library test.mixin_application_test;
11 11
12 import 'dart:mirrors'; 12 import 'dart:mirrors';
13 13
14 import 'package:expect/expect.dart'; 14 import 'package:expect/expect.dart';
15 15
16 import 'model.dart'; 16 import 'model.dart';
17 import 'stringify.dart'; 17 import 'stringify.dart';
18 18
19 class Mixin { 19 class Mixin {
20 int i; 20 int i;
21 m() {} 21 m() {}
22 } 22 }
23 23
24 class Mixin2 { 24 class Mixin2 {
25 int i2; 25 int i2;
26 m2() {} 26 m2() {}
27 } 27 }
28 28
29 typedef MixinApplication = C with Mixin; 29 class MixinApplication = C with Mixin;
30 typedef MixinApplicationA = C with Mixin, Mixin2; 30 class MixinApplicationA = C with Mixin, Mixin2;
31 31
32 typedef UnusedMixinApplication = C with Mixin; 32 class UnusedMixinApplication = C with Mixin;
33 33
34 class Subclass extends C with Mixin { 34 class Subclass extends C with Mixin {
35 f() {} 35 f() {}
36 } 36 }
37 37
38 class Subclass2 extends MixinApplication { 38 class Subclass2 extends MixinApplication {
39 g() {} 39 g() {}
40 } 40 }
41 41
42 class SubclassA extends C with Mixin, Mixin2 { 42 class SubclassA extends C with Mixin, Mixin2 {
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 testMixin(); 333 testMixin();
334 testMixin2(); 334 testMixin2();
335 testMixinApplication(); 335 testMixinApplication();
336 testMixinApplicationA(); 336 testMixinApplicationA();
337 testUnusedMixinApplication(); 337 testUnusedMixinApplication();
338 testSubclass(); 338 testSubclass();
339 testSubclass2(); 339 testSubclass2();
340 testSubclassA(); 340 testSubclassA();
341 testSubclass2A(); 341 testSubclass2A();
342 } 342 }
OLDNEW
« no previous file with comments | « tests/lib/mirrors/generic_mixin_test.dart ('k') | tests/lib/mirrors/mixin_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698