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

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

Issue 1383923002: Remove --supermixin flag from VM. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 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
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 // SharedOptions=--supermixin
5 4
6 import "package:expect/expect.dart"; 5 import "package:expect/expect.dart";
7 6
8 class B { 7 class B {
9 // 'super' resolves to Object, and in some tests, multiple points in the 8 // 'super' resolves to Object, and in some tests, multiple points in the
10 // inheritance chain. 9 // inheritance chain.
11 toString() => 'B(' + super.toString() + ')'; 10 toString() => 'B(' + super.toString() + ')';
12 } 11 }
13 12
14 class R { 13 class R {
(...skipping 19 matching lines...) Expand all
34 Expect.equals(expected, object.toString()); 33 Expect.equals(expected, object.toString());
35 } 34 }
36 35
37 check(new B(), "B(Instance of 'B')"); 36 check(new B(), "B(Instance of 'B')");
38 check(new R(), "R[Instance of 'R']"); 37 check(new R(), "R[Instance of 'R']");
39 check(new D(), "D<B(R[Instance of 'D'])>"); 38 check(new D(), "D<B(R[Instance of 'D'])>");
40 check(new E(), "E{B(D<B(R[Instance of 'E'])>)}"); 39 check(new E(), "E{B(D<B(R[Instance of 'E'])>)}");
41 check(new F(), "B(B(R[Instance of 'F']))"); 40 check(new F(), "B(B(R[Instance of 'F']))");
42 check(new G(), "G{B(B(B(R[Instance of 'G'])))}"); 41 check(new G(), "G{B(B(B(R[Instance of 'G'])))}");
43 } 42 }
OLDNEW
« no previous file with comments | « tests/language/mixin_illegal_superclass_test.dart ('k') | tests/language/mixin_super_bound2_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698