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

Side by Side Diff: tests/language/factory_redirection_test.dart

Issue 12212016: Remove Expect from core library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add deprecation comment for ExpectException and revert one test. Created 7 years, 8 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/language/factory_redirection2_test.dart ('k') | tests/language/factory_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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 "package:expect/expect.dart";
6
5 class A<T> { 7 class A<T> {
6 A() : x = null; 8 A() : x = null;
7 9
8 const A.constant(this.x); 10 const A.constant(this.x);
9 11
10 factory A.factory() { 12 factory A.factory() {
11 return new B<Set>(); 13 return new B<Set>();
12 } 14 }
13 15
14 factory A.test01() = T; /// 01: runtime error 16 factory A.test01() = T; /// 01: runtime error
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 Expect.isTrue(new A<bool>.constant(true).x); 66 Expect.isTrue(new A<bool>.constant(true).x);
65 Expect.isTrue(new A<Set>.factory() is B<Set>); 67 Expect.isTrue(new A<Set>.factory() is B<Set>);
66 Expect.isTrue(new B<List>.A() is A<List>); /// 08: dynamic type error 68 Expect.isTrue(new B<List>.A() is A<List>); /// 08: dynamic type error
67 Expect.isFalse(new B<List>.A() is A<Set>); /// 09: dynamic type error 69 Expect.isFalse(new B<List>.A() is A<Set>); /// 09: dynamic type error
68 Expect.isTrue(new B<bool>.A_constant(true).x); /// 10: dynamic type error 70 Expect.isTrue(new B<bool>.A_constant(true).x); /// 10: dynamic type error
69 Expect.isTrue(new B<List>.A_factory() is B<Set>); /// 11: dynamic type error 71 Expect.isTrue(new B<List>.A_factory() is B<Set>); /// 11: dynamic type error
70 Expect.isTrue(new C<String, num>.A() is A<num>); /// 12: dynamic type error 72 Expect.isTrue(new C<String, num>.A() is A<num>); /// 12: dynamic type error
71 Expect.isTrue(new C<String, num>.A_factory() is B<Set>); /// 13: dynamic type error 73 Expect.isTrue(new C<String, num>.A_factory() is B<Set>); /// 13: dynamic type error
72 Expect.isTrue(new C<String, bool>.B_constant(true).x); /// 14: dynamic type e rror 74 Expect.isTrue(new C<String, bool>.B_constant(true).x); /// 14: dynamic type e rror
73 } 75 }
OLDNEW
« no previous file with comments | « tests/language/factory_redirection2_test.dart ('k') | tests/language/factory_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698