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

Side by Side Diff: tests/language/mixin_naming_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
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 "package:expect/expect.dart";
6
5 class S { } 7 class S { }
6 class M1 { } 8 class M1 { }
7 class M2 { } 9 class M2 { }
8 class M3 { } 10 class M3 { }
9 11
10 typedef C = S with M1, M2, M3; 12 typedef C = S with M1, M2, M3;
11 class D extends S with M1, M2, M3 { } 13 class D extends S with M1, M2, M3 { }
12 14
13 class S_M1 { } 15 class S_M1 { }
14 class S_M1_M2 { } 16 class S_M1_M2 { }
(...skipping 20 matching lines...) Expand all
35 Expect.isTrue(sm is S_M1); 37 Expect.isTrue(sm is S_M1);
36 Expect.isFalse(sm is S_M1_M2); 38 Expect.isFalse(sm is S_M1_M2);
37 39
38 var smm = new S_M1_M2(); 40 var smm = new S_M1_M2();
39 Expect.isFalse(smm is C); 41 Expect.isFalse(smm is C);
40 Expect.isFalse(smm is D); 42 Expect.isFalse(smm is D);
41 Expect.isFalse(smm is S); 43 Expect.isFalse(smm is S);
42 Expect.isFalse(smm is S_M1); 44 Expect.isFalse(smm is S_M1);
43 Expect.isTrue(smm is S_M1_M2); 45 Expect.isTrue(smm is S_M1_M2);
44 } 46 }
OLDNEW
« no previous file with comments | « tests/language/mixin_mixin_test.dart ('k') | tests/language/mixin_override_regression_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698