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

Side by Side Diff: tests/language/src/Instanceof2Test.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 // Dart test program for testing the instanceof operation. 4 // Dart test program for testing the instanceof operation.
5 5
6 interface I { } 6 interface I { }
7 7
8 interface AI extends I { } 8 interface AI extends I { }
9 9
10 class A implements AI { 10 class A implements AI {
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 Expect.equals(true, a is List); 90 Expect.equals(true, a is List);
91 Expect.equals(true, a is List<Object>); 91 Expect.equals(true, a is List<Object>);
92 Expect.equals(false, a is List<int>); 92 Expect.equals(false, a is List<int>);
93 Expect.equals(false, a is List<num>); 93 Expect.equals(false, a is List<num>);
94 Expect.equals(true, a is List<String>); 94 Expect.equals(true, a is List<String>);
95 } 95 }
96 } 96 }
97 } 97 }
98 98
99 main() { 99 main() {
100 InstanceofTest.testMain(); 100 // Repeat type checks so that inlined tests can be tested as well.
101 for (int i = 0; i < 5; i++) {
102 InstanceofTest.testMain();
103 }
101 } 104 }
105
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698