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

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

Issue 12743005: Revert "Remove Expect from core library." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Reupload (first upload failed). Created 7 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 | 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
7 class S { } 5 class S { }
8 class M1 { } 6 class M1 { }
9 class M2 { } 7 class M2 { }
10 class M3 { } 8 class M3 { }
11 9
12 typedef C = S with M1, M2, M3; 10 typedef C = S with M1, M2, M3;
13 class D extends S with M1, M2, M3 { } 11 class D extends S with M1, M2, M3 { }
14 12
15 class S_M1 { } 13 class S_M1 { }
16 class S_M1_M2 { } 14 class S_M1_M2 { }
(...skipping 20 matching lines...) Expand all
37 Expect.isTrue(sm is S_M1); 35 Expect.isTrue(sm is S_M1);
38 Expect.isFalse(sm is S_M1_M2); 36 Expect.isFalse(sm is S_M1_M2);
39 37
40 var smm = new S_M1_M2(); 38 var smm = new S_M1_M2();
41 Expect.isFalse(smm is C); 39 Expect.isFalse(smm is C);
42 Expect.isFalse(smm is D); 40 Expect.isFalse(smm is D);
43 Expect.isFalse(smm is S); 41 Expect.isFalse(smm is S);
44 Expect.isFalse(smm is S_M1); 42 Expect.isFalse(smm is S_M1);
45 Expect.isTrue(smm is S_M1_M2); 43 Expect.isTrue(smm is S_M1_M2);
46 } 44 }
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