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

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

Issue 1635763003: Restore old supermixin functionality to shared language tests. Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 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
4 5
5 import "package:expect/expect.dart"; 6 import "package:expect/expect.dart";
6 7
7 class B { 8 class B {
8 // 'super' resolves to Object, and in some tests, multiple points in the 9 // 'super' resolves to Object, and in some tests, multiple points in the
9 // inheritance chain. 10 // inheritance chain.
10 toString() => 'B(' + super.toString() + ')'; 11 toString() => 'B(' + super.toString() + ')';
11 } 12 }
12 13
13 class R { 14 class R {
(...skipping 19 matching lines...) Expand all
33 Expect.equals(expected, object.toString()); 34 Expect.equals(expected, object.toString());
34 } 35 }
35 36
36 check(new B(), "B(Instance of 'B')"); 37 check(new B(), "B(Instance of 'B')");
37 check(new R(), "R[Instance of 'R']"); 38 check(new R(), "R[Instance of 'R']");
38 check(new D(), "D<B(R[Instance of 'D'])>"); 39 check(new D(), "D<B(R[Instance of 'D'])>");
39 check(new E(), "E{B(D<B(R[Instance of 'E'])>)}"); 40 check(new E(), "E{B(D<B(R[Instance of 'E'])>)}");
40 check(new F(), "B(B(R[Instance of 'F']))"); 41 check(new F(), "B(B(R[Instance of 'F']))");
41 check(new G(), "G{B(B(B(R[Instance of 'G'])))}"); 42 check(new G(), "G{B(B(B(R[Instance of 'G'])))}");
42 } 43 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698