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

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

Issue 49083004: Re-triage mirror test failures on the analyzer. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month 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
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 import "dart:mirrors"; 5 import "dart:mirrors";
6 6
7 import "package:expect/expect.dart"; 7 import "package:expect/expect.dart";
8 8
9 doNothing42() {} 9 doNothing42() {}
10 10
11 int _x = 5; 11 int _x = 5;
12 int get topGetter => _x; 12 int get topGetter => _x;
13 void set topSetter(x) { _x = x; } 13 void set topSetter(x) { _x = x; }
14 14
15 class AbstractC { 15 abstract class AbstractC {
16 16
17 AbstractC(); 17 AbstractC();
18 18
19 void bar(); 19 void bar();
20 get priv; 20 get priv;
21 set priv(value); 21 set priv(value);
22 } 22 }
23 23
24 class C extends AbstractC { 24 abstract class C extends AbstractC {
25 25
26 static foo() {} 26 static foo() {}
27 27
28 C(); 28 C();
29 C.other(); 29 C.other();
30 C.other2() : this.other(); 30 C.other2() : this.other();
31 31
32 var _priv; 32 var _priv;
33 get priv => _priv; 33 get priv => _priv;
34 set priv(value) => _priv = value; 34 set priv(value) => _priv = value;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 classMirror = reflectClass(AbstractC); 69 classMirror = reflectClass(AbstractC);
70 checkKinds(classMirror.constructors[#AbstractC], 70 checkKinds(classMirror.constructors[#AbstractC],
71 [false, false, false, false, true]); 71 [false, false, false, false, true]);
72 checkKinds(classMirror.members[#bar], 72 checkKinds(classMirror.members[#bar],
73 [false, true, false, false, false]); 73 [false, true, false, false, false]);
74 checkKinds(classMirror.members[#priv], 74 checkKinds(classMirror.members[#priv],
75 [false, true, true, false, false]); 75 [false, true, true, false, false]);
76 checkKinds(classMirror.members[const Symbol("priv=")], 76 checkKinds(classMirror.members[const Symbol("priv=")],
77 [false, true, false, true, false]); 77 [false, true, false, true, false]);
78 } 78 }
OLDNEW
« no previous file with comments | « tests/lib/mirrors/generics_test.dart ('k') | tests/lib/mirrors/method_mirror_returntype_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698