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 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 main() => const Duration(); | 239 main() => const Duration(); |
240 ''', | 240 ''', |
241 }), | 241 }), |
242 | 242 |
243 const Test(const { | 243 const Test(const { |
244 'main.dart': ''' | 244 'main.dart': ''' |
245 import 'dart:collection'; | 245 import 'dart:collection'; |
246 main() => new UnmodifiableListView(null); | 246 main() => new UnmodifiableListView(null); |
247 ''', | 247 ''', |
248 }), | 248 }), |
| 249 |
| 250 const Test(const { |
| 251 'main.dart': ''' |
| 252 var myIdentical = identical; |
| 253 main() => myIdentical; |
| 254 ''', |
| 255 }), |
249 ]; | 256 ]; |
250 | 257 |
251 class Test { | 258 class Test { |
252 final Map sourceFiles; | 259 final Map sourceFiles; |
253 final int expectedErrorCount; | 260 final int expectedErrorCount; |
254 final int expectedWarningCount; | 261 final int expectedWarningCount; |
255 final int expectedHintCount; | 262 final int expectedHintCount; |
256 final int expectedInfoCount; | 263 final int expectedInfoCount; |
257 | 264 |
258 const Test(this.sourceFiles, { | 265 const Test(this.sourceFiles, { |
259 this.expectedErrorCount: 0, | 266 this.expectedErrorCount: 0, |
260 this.expectedWarningCount: 0, | 267 this.expectedWarningCount: 0, |
261 this.expectedHintCount: 0, | 268 this.expectedHintCount: 0, |
262 this.expectedInfoCount: 0}); | 269 this.expectedInfoCount: 0}); |
263 } | 270 } |
OLD | NEW |