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

Side by Side Diff: tests/compiler/dart2js_native/native_mixin_multiple3_test.dart

Issue 2771453003: Format all tests. (Closed)
Patch Set: Format files Created 3 years, 8 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) 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 "native_testing.dart"; 5 import "native_testing.dart";
6 6
7 // Test that native classes and plain classes can access methods defined only by 7 // Test that native classes and plain classes can access methods defined only by
8 // the same mixin. 8 // the same mixin.
9 9
10 class D extends Object with M1, M2, M3 {} 10 class D extends Object with M1, M2, M3 {}
(...skipping 16 matching lines...) Expand all
27 } 27 }
28 28
29 @Native("B") 29 @Native("B")
30 class B extends A with M1, M2, M3 {} 30 class B extends A with M1, M2, M3 {}
31 31
32 @Native("C") 32 @Native("C")
33 class C extends B { 33 class C extends B {
34 foo() => 'C.foo'; 34 foo() => 'C.foo';
35 } 35 }
36 36
37 makeA() native ; 37 makeA() native;
38 makeB() native ; 38 makeB() native;
39 makeC() native ; 39 makeC() native;
40 40
41 void setup() native """ 41 void setup() native """
42 function A() {} 42 function A() {}
43 function B() {} 43 function B() {}
44 function C() {} 44 function C() {}
45 makeA = function(){return new A;}; 45 makeA = function(){return new A;};
46 makeB = function(){return new B;}; 46 makeB = function(){return new B;};
47 makeC = function(){return new C;}; 47 makeC = function(){return new C;};
48 48
49 self.nativeConstructor(A); 49 self.nativeConstructor(A);
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 var e = x[4]; 82 var e = x[4];
83 83
84 var f = callFoo; 84 var f = callFoo;
85 85
86 Expect.equals('A.foo', f(a)); 86 Expect.equals('A.foo', f(a));
87 Expect.equals('M2.foo', f(b)); 87 Expect.equals('M2.foo', f(b));
88 Expect.equals('C.foo', f(c)); 88 Expect.equals('C.foo', f(c));
89 Expect.equals('M2.foo', f(d)); 89 Expect.equals('M2.foo', f(d));
90 Expect.equals('E.foo', f(e)); 90 Expect.equals('E.foo', f(e));
91 } 91 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698