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

Side by Side Diff: tests/compiler/dart2js/serialization/test_data.dart

Issue 1969313007: Handle explicit constructor. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 7 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) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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 library dart2js.serialization_test_data; 5 library dart2js.serialization_test_data;
6 6
7 const List<Test> TESTS = const <Test>[ 7 const List<Test> TESTS = const <Test>[
8 const Test(const { 8 const Test(const {
9 'main.dart': 'main() {}' 9 'main.dart': 'main() {}'
10 }), 10 }),
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 main() { 194 main() {
195 loop: for (var a in []) { 195 loop: for (var a in []) {
196 for (var b in []) { 196 for (var b in []) {
197 continue loop; 197 continue loop;
198 } 198 }
199 break; 199 break;
200 } 200 }
201 }''' 201 }'''
202 }), 202 }),
203 203
204 const Test(const {
205 'main.dart': '''
206 class A {
207 A();
208 }
209 main() => new A();
210 ''',
211 }),
204 ]; 212 ];
205 213
206 class Test { 214 class Test {
207 final Map sourceFiles; 215 final Map sourceFiles;
208 final int expectedErrorCount; 216 final int expectedErrorCount;
209 final int expectedWarningCount; 217 final int expectedWarningCount;
210 final int expectedHintCount; 218 final int expectedHintCount;
211 final int expectedInfoCount; 219 final int expectedInfoCount;
212 220
213 const Test(this.sourceFiles, { 221 const Test(this.sourceFiles, {
214 this.expectedErrorCount: 0, 222 this.expectedErrorCount: 0,
215 this.expectedWarningCount: 0, 223 this.expectedWarningCount: 0,
216 this.expectedHintCount: 0, 224 this.expectedHintCount: 0,
217 this.expectedInfoCount: 0}); 225 this.expectedInfoCount: 0});
218 } 226 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698