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

Side by Side Diff: pkg/dev_compiler/test/codegen/lib/html/custom_elements_23127_test.dart

Issue 2413073002: Start cleaning up the HTML tests. (Closed)
Patch Set: Unfork expect.dart. Created 4 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 4
5 5
6 // Regression test for http://dartbug.com/23127 6 // Regression test for http://dartbug.com/23127
7 // Tests super calls to a custom element upgrade constructor with various 7 // Tests super calls to a custom element upgrade constructor with various
8 // combinations of parameters and type arguments. 8 // combinations of parameters and type arguments.
9 9
10 library custom_elements_23127_test; 10 library custom_elements_23127_test;
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 : qq = callTwice(() => ++a * ++b), 49 : qq = callTwice(() => ++a * ++b),
50 super.created() { 50 super.created() {
51 action(); 51 action();
52 qq = [this is T, qq, a, b, c]; 52 qq = [this is T, qq, a, b, c];
53 } 53 }
54 } 54 }
55 55
56 class C1 extends B1 { 56 class C1 extends B1 {
57 int z; 57 int z;
58 C1.created() : super.created(); 58 C1.created() : super.created();
59 action() => z = 3; 59 action() { z = 3; }
60 } 60 }
61 61
62 class C1T extends B1T { 62 class C1T extends B1T {
63 int z; 63 int z;
64 C1T.created() : super.created(); 64 C1T.created() : super.created();
65 action() => z = 3; 65 action() { z = 3; }
66 } 66 }
67 67
68 class C2 extends B2 { 68 class C2 extends B2 {
69 int z; 69 int z;
70 C2.created() : super.created(20); 70 C2.created() : super.created(20);
71 action() => z = 3; 71 action() { z = 3; }
72 } 72 }
73 73
74 class C2T extends B2T { 74 class C2T extends B2T {
75 int z; 75 int z;
76 C2T.created() : super.created(20); 76 C2T.created() : super.created(20);
77 action() => z = 3; 77 action() { z = 3; }
78 } 78 }
79 79
80 80
81 81
82 var callTwice; 82 var callTwice;
83 83
84 main() { 84 main() {
85 useHtmlIndividualConfiguration(); 85 useHtmlIndividualConfiguration();
86 86
87 setUp(() => customElementsReady); 87 setUp(() => customElementsReady);
(...skipping 29 matching lines...) Expand all
117 group('c2t', () { 117 group('c2t', () {
118 test('C2T', () { 118 test('C2T', () {
119 document.register('x-c2t', C2T); 119 document.register('x-c2t', C2T);
120 C2T e = document.createElement('x-c2t'); 120 C2T e = document.createElement('x-c2t');
121 expect(e.z, 3); 121 expect(e.z, 3);
122 expect(e.qq, [true, 88, 22, 4, 3]); 122 expect(e.qq, [true, 88, 22, 4, 3]);
123 }); 123 });
124 }); 124 });
125 125
126 } 126 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698