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 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 main() => new UnmodifiableListView(null); | 246 main() => new UnmodifiableListView(null); |
247 ''', | 247 ''', |
248 }), | 248 }), |
249 | 249 |
250 const Test(const { | 250 const Test(const { |
251 'main.dart': ''' | 251 'main.dart': ''' |
252 var myIdentical = identical; | 252 var myIdentical = identical; |
253 main() => myIdentical; | 253 main() => myIdentical; |
254 ''', | 254 ''', |
255 }), | 255 }), |
| 256 |
| 257 const Test(const { |
| 258 'main.dart': ''' |
| 259 class Foo { |
| 260 String toString() => super.toString(); |
| 261 } |
| 262 main() { |
| 263 print(new Foo()); |
| 264 } |
| 265 ''', |
| 266 }), |
256 ]; | 267 ]; |
257 | 268 |
258 class Test { | 269 class Test { |
259 final Map sourceFiles; | 270 final Map sourceFiles; |
260 final int expectedErrorCount; | 271 final int expectedErrorCount; |
261 final int expectedWarningCount; | 272 final int expectedWarningCount; |
262 final int expectedHintCount; | 273 final int expectedHintCount; |
263 final int expectedInfoCount; | 274 final int expectedInfoCount; |
264 | 275 |
265 const Test(this.sourceFiles, { | 276 const Test(this.sourceFiles, { |
266 this.expectedErrorCount: 0, | 277 this.expectedErrorCount: 0, |
267 this.expectedWarningCount: 0, | 278 this.expectedWarningCount: 0, |
268 this.expectedHintCount: 0, | 279 this.expectedHintCount: 0, |
269 this.expectedInfoCount: 0}); | 280 this.expectedInfoCount: 0}); |
270 } | 281 } |
OLD | NEW |