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

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

Issue 1994613004: Handle use of constant constructors with default values. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comment 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
« no previous file with comments | « tests/compiler/dart2js/serialization/helper.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 ''', 210 ''',
211 }), 211 }),
212 212
213 const Test(const { 213 const Test(const {
214 'main.dart': ''' 214 'main.dart': '''
215 class C { 215 class C {
216 const C(); 216 const C();
217 } 217 }
218 main() => const C();''' 218 main() => const C();'''
219 }), 219 }),
220
221 const Test(const {
222 'main.dart': '''
223 class C {
224 factory C() = Object;
225 }
226 main() => new C();'''
227 }),
228
229 const Test(const {
230 'main.dart': '''
231 abstract class C implements List {
232 factory C([_]) = List;
233 }
234 main() => new C();'''
235 }),
236
237 const Test(const {
238 'main.dart': '''
239 main() => const Duration();
240 ''',
241 })
220 ]; 242 ];
221 243
222 class Test { 244 class Test {
223 final Map sourceFiles; 245 final Map sourceFiles;
224 final int expectedErrorCount; 246 final int expectedErrorCount;
225 final int expectedWarningCount; 247 final int expectedWarningCount;
226 final int expectedHintCount; 248 final int expectedHintCount;
227 final int expectedInfoCount; 249 final int expectedInfoCount;
228 250
229 const Test(this.sourceFiles, { 251 const Test(this.sourceFiles, {
230 this.expectedErrorCount: 0, 252 this.expectedErrorCount: 0,
231 this.expectedWarningCount: 0, 253 this.expectedWarningCount: 0,
232 this.expectedHintCount: 0, 254 this.expectedHintCount: 0,
233 this.expectedInfoCount: 0}); 255 this.expectedInfoCount: 0});
234 } 256 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/serialization/helper.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698