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

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

Issue 27300003: Change "typedef" to "class" in core library and related tests. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update some dart2js tests and unparser. Created 7 years, 2 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"; 5 import "package:expect/expect.dart";
6 6
7 class S { } 7 class S { }
8 class M1 { } 8 class M1 { }
9 class M2 { } 9 class M2 { }
10 class M3 { } 10 class M3 { }
11 11
12 typedef C = S with M1, M2, M3; 12 class C = S with M1, M2, M3;
13 class D extends S with M1, M2, M3 { } 13 class D extends S with M1, M2, M3 { }
14 14
15 class S_M1 { } 15 class S_M1 { }
16 class S_M1_M2 { } 16 class S_M1_M2 { }
17 17
18 main() { 18 main() {
19 var c = new C(); 19 var c = new C();
20 Expect.isTrue(c is C); 20 Expect.isTrue(c is C);
21 Expect.isFalse(c is D); 21 Expect.isFalse(c is D);
22 Expect.isTrue(c is S); 22 Expect.isTrue(c is S);
(...skipping 14 matching lines...) Expand all
37 Expect.isTrue(sm is S_M1); 37 Expect.isTrue(sm is S_M1);
38 Expect.isFalse(sm is S_M1_M2); 38 Expect.isFalse(sm is S_M1_M2);
39 39
40 var smm = new S_M1_M2(); 40 var smm = new S_M1_M2();
41 Expect.isFalse(smm is C); 41 Expect.isFalse(smm is C);
42 Expect.isFalse(smm is D); 42 Expect.isFalse(smm is D);
43 Expect.isFalse(smm is S); 43 Expect.isFalse(smm is S);
44 Expect.isFalse(smm is S_M1); 44 Expect.isFalse(smm is S_M1);
45 Expect.isTrue(smm is S_M1_M2); 45 Expect.isTrue(smm is S_M1_M2);
46 } 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