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

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

Issue 2765893003: Fix warnings_checker.dart handling of multitests (Closed)
Patch Set: Created 3 years, 9 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
OLDNEW
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 library test.abstract_class_test; 5 library test.abstract_class_test;
6 6
7 import 'dart:mirrors'; 7 import 'dart:mirrors';
8 import 'package:expect/expect.dart'; 8 import 'package:expect/expect.dart';
9 9
10 void main() { 10 void main() {
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 Expect.isFalse(reflectClass(ConcreteMA2).isAbstract); 123 Expect.isFalse(reflectClass(ConcreteMA2).isAbstract);
124 Expect.isFalse(reflectClass(ConcreteMA2).superclass.isAbstract); 124 Expect.isFalse(reflectClass(ConcreteMA2).superclass.isAbstract);
125 Expect.isFalse(reflectClass(ConcreteMA2).superclass.superclass.isAbstract); 125 Expect.isFalse(reflectClass(ConcreteMA2).superclass.superclass.isAbstract);
126 } 126 }
127 } 127 }
128 128
129 abstract class NamedMA = S with M; 129 abstract class NamedMA = S with M;
130 class SubNamedMA extends NamedMA { 130 class SubNamedMA extends NamedMA {
131 mixinFoo() {} 131 mixinFoo() {}
132 } 132 }
133 class ConcreteNamedMA = S with M; /// 00: static type warning 133 class ConcreteNamedMA = S with M; //# 00: static type warning
134 134
135 abstract class NamedMA2 = S with M2; 135 abstract class NamedMA2 = S with M2;
136 class SubNamedMA2 extends NamedMA2 { 136 class SubNamedMA2 extends NamedMA2 {
137 mixinFoo() {} 137 mixinFoo() {}
138 } 138 }
139 class ConcreteNamedMA2 = S with M2; 139 class ConcreteNamedMA2 = S with M2;
140 140
141 testNamedMixinApplication() { 141 testNamedMixinApplication() {
142 // Application is abstract. 142 // Application is abstract.
143 { 143 {
144 // Mixin is abstract. 144 // Mixin is abstract.
145 Expect.isFalse(reflectClass(SubNamedMA).isAbstract); 145 Expect.isFalse(reflectClass(SubNamedMA).isAbstract);
146 Expect.isTrue(reflectClass(SubNamedMA).superclass.isAbstract); 146 Expect.isTrue(reflectClass(SubNamedMA).superclass.isAbstract);
147 Expect.isFalse(reflectClass(SubNamedMA).superclass.superclass.isAbstract); 147 Expect.isFalse(reflectClass(SubNamedMA).superclass.superclass.isAbstract);
148 Expect.isTrue(reflectClass(NamedMA).isAbstract); 148 Expect.isTrue(reflectClass(NamedMA).isAbstract);
149 Expect.isFalse(reflectClass(NamedMA).superclass.isAbstract); 149 Expect.isFalse(reflectClass(NamedMA).superclass.isAbstract);
150 150
151 // Mixin is concrete. 151 // Mixin is concrete.
152 Expect.isFalse(reflectClass(SubNamedMA2).isAbstract); 152 Expect.isFalse(reflectClass(SubNamedMA2).isAbstract);
153 Expect.isTrue(reflectClass(SubNamedMA2).superclass.isAbstract); 153 Expect.isTrue(reflectClass(SubNamedMA2).superclass.isAbstract);
154 Expect.isFalse(reflectClass(SubNamedMA2).superclass.superclass.isAbstract); 154 Expect.isFalse(reflectClass(SubNamedMA2).superclass.superclass.isAbstract);
155 Expect.isTrue(reflectClass(NamedMA2).isAbstract); 155 Expect.isTrue(reflectClass(NamedMA2).isAbstract);
156 Expect.isFalse(reflectClass(NamedMA2).superclass.isAbstract); 156 Expect.isFalse(reflectClass(NamedMA2).superclass.isAbstract);
157 } 157 }
158 158
159 // Application is concrete. 159 // Application is concrete.
160 { 160 {
161 // Mixin is abstract. 161 // Mixin is abstract.
162 Expect.isFalse(reflectClass(ConcreteNamedMA).isAbstract); /// 00: ok 162 Expect.isFalse(reflectClass(ConcreteNamedMA).isAbstract); //# 00: ok
163 Expect.isFalse(reflectClass(ConcreteNamedMA).superclass.isAbstract); /// 00: o k 163 Expect.isFalse(reflectClass(ConcreteNamedMA).superclass.isAbstract); //# 00: o k
164 164
165 // Mixin is concrete. 165 // Mixin is concrete.
166 Expect.isFalse(reflectClass(ConcreteNamedMA2).isAbstract); 166 Expect.isFalse(reflectClass(ConcreteNamedMA2).isAbstract);
167 Expect.isFalse(reflectClass(ConcreteNamedMA2).superclass.isAbstract); 167 Expect.isFalse(reflectClass(ConcreteNamedMA2).superclass.isAbstract);
168 } 168 }
169 } 169 }
OLDNEW
« no previous file with comments | « tests/lib/convert/base64_test.dart ('k') | tests/lib/mirrors/circular_factory_redirection_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698