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

Side by Side Diff: tests/language/mixin_is_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
« no previous file with comments | « tests/language/mixin_implements_test.dart ('k') | tests/language/mixin_issue10216_2_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) 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 10
11 typedef C = S with M1; 11 class C = S with M1;
12 typedef D = S with M1, M2; 12 class D = S with M1, M2;
13 typedef E = S with M2, M1; 13 class E = S with M2, M1;
14 class F extends E { } 14 class F extends E { }
15 15
16 typedef C_ = S with M1; 16 class C_ = S with M1;
17 typedef D_ = S with M1, M2; 17 class D_ = S with M1, M2;
18 typedef E_ = S with M2, M1; 18 class E_ = S with M2, M1;
19 class F_ extends E_ { } 19 class F_ extends E_ { }
20 20
21 main() { 21 main() {
22 var c = new C(); 22 var c = new C();
23 Expect.isTrue(c is C); 23 Expect.isTrue(c is C);
24 Expect.isFalse(c is D); 24 Expect.isFalse(c is D);
25 Expect.isFalse(c is E); 25 Expect.isFalse(c is E);
26 Expect.isFalse(c is F); 26 Expect.isFalse(c is F);
27 Expect.isTrue(c is S); 27 Expect.isTrue(c is S);
28 Expect.isTrue(c is M1); 28 Expect.isTrue(c is M1);
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 Expect.isFalse(e is C_); 70 Expect.isFalse(e is C_);
71 Expect.isFalse(e is D_); 71 Expect.isFalse(e is D_);
72 Expect.isFalse(e is E_); 72 Expect.isFalse(e is E_);
73 Expect.isFalse(e is F_); 73 Expect.isFalse(e is F_);
74 74
75 Expect.isFalse(f is C_); 75 Expect.isFalse(f is C_);
76 Expect.isFalse(f is D_); 76 Expect.isFalse(f is D_);
77 Expect.isFalse(f is E_); 77 Expect.isFalse(f is E_);
78 Expect.isFalse(f is F_); 78 Expect.isFalse(f is F_);
79 } 79 }
OLDNEW
« no previous file with comments | « tests/language/mixin_implements_test.dart ('k') | tests/language/mixin_issue10216_2_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698