OLD | NEW |
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 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 main() => new C();''' | 226 main() => new C();''' |
227 }), | 227 }), |
228 | 228 |
229 const Test(const { | 229 const Test(const { |
230 'main.dart': ''' | 230 'main.dart': ''' |
231 abstract class C implements List { | 231 abstract class C implements List { |
232 factory C([_]) = List; | 232 factory C([_]) = List; |
233 } | 233 } |
234 main() => new C();''' | 234 main() => new C();''' |
235 }), | 235 }), |
| 236 |
| 237 const Test(const { |
| 238 'main.dart': ''' |
| 239 main() => const Duration(); |
| 240 ''', |
| 241 }) |
236 ]; | 242 ]; |
237 | 243 |
238 class Test { | 244 class Test { |
239 final Map sourceFiles; | 245 final Map sourceFiles; |
240 final int expectedErrorCount; | 246 final int expectedErrorCount; |
241 final int expectedWarningCount; | 247 final int expectedWarningCount; |
242 final int expectedHintCount; | 248 final int expectedHintCount; |
243 final int expectedInfoCount; | 249 final int expectedInfoCount; |
244 | 250 |
245 const Test(this.sourceFiles, { | 251 const Test(this.sourceFiles, { |
246 this.expectedErrorCount: 0, | 252 this.expectedErrorCount: 0, |
247 this.expectedWarningCount: 0, | 253 this.expectedWarningCount: 0, |
248 this.expectedHintCount: 0, | 254 this.expectedHintCount: 0, |
249 this.expectedInfoCount: 0}); | 255 this.expectedInfoCount: 0}); |
250 } | 256 } |
OLD | NEW |