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

Side by Side Diff: tests/language/src/InstanceofTest.dart

Issue 10198033: Add more subtype checks, and repeat them so that any inlined checks can be tested as well (first te… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 7 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
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 class InstanceofTest { 5 class InstanceofTest {
6 6
7 InstanceofTest() {} 7 InstanceofTest() {}
8 8
9 static void testBasicTypes() { 9 static void testBasicTypes() {
10 Expect.equals(true, 0 is int); 10 Expect.equals(true, 0 is int);
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 class B {B() {}} 173 class B {B() {}}
174 174
175 interface J {} 175 interface J {}
176 176
177 interface K extends J {} 177 interface K extends J {}
178 class C implements I, K {C() {}} 178 class C implements I, K {C() {}}
179 179
180 class D extends C {D() : super() {}} 180 class D extends C {D() : super() {}}
181 181
182 main() { 182 main() {
183 InstanceofTest.testMain(); 183 // Repeat type checks so that inlined tests can be tested as well.
184 for (int i = 0; i < 5; i++) {
185 InstanceofTest.testMain();
186 }
184 } 187 }
188
OLDNEW
« tests/language/src/GenericInstanceof3Test.dart ('K') | « tests/language/src/Instanceof3Test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698