| 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('Empty program', const { | 8 const Test('Empty program', const { |
| 9 'main.dart': 'main() {}' | 9 'main.dart': 'main() {}' |
| 10 }), | 10 }), |
| (...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 301 ''', | 301 ''', |
| 302 }, preserializedSourceFiles: const { | 302 }, preserializedSourceFiles: const { |
| 303 'lib.dart': ''' | 303 'lib.dart': ''' |
| 304 class M {} | 304 class M {} |
| 305 class S { | 305 class S { |
| 306 S(a); | 306 S(a); |
| 307 } | 307 } |
| 308 class C = S with M; | 308 class C = S with M; |
| 309 ''', | 309 ''', |
| 310 }), | 310 }), |
| 311 |
| 312 const Test('Import mirrors, thus checking import paths', const { |
| 313 'main.dart': ''' |
| 314 import 'dart:mirrors'; |
| 315 main() {} |
| 316 ''', |
| 317 }, |
| 318 expectedWarningCount: 1), |
| 311 ]; | 319 ]; |
| 312 | 320 |
| 313 class Test { | 321 class Test { |
| 314 final String name; | 322 final String name; |
| 315 final Map sourceFiles; | 323 final Map sourceFiles; |
| 316 final Map preserializedSourceFiles; | 324 final Map preserializedSourceFiles; |
| 317 final int expectedErrorCount; | 325 final int expectedErrorCount; |
| 318 final int expectedWarningCount; | 326 final int expectedWarningCount; |
| 319 final int expectedHintCount; | 327 final int expectedHintCount; |
| 320 final int expectedInfoCount; | 328 final int expectedInfoCount; |
| 321 | 329 |
| 322 const Test( | 330 const Test( |
| 323 this.name, | 331 this.name, |
| 324 this.sourceFiles, | 332 this.sourceFiles, |
| 325 {this.preserializedSourceFiles, | 333 {this.preserializedSourceFiles, |
| 326 this.expectedErrorCount: 0, | 334 this.expectedErrorCount: 0, |
| 327 this.expectedWarningCount: 0, | 335 this.expectedWarningCount: 0, |
| 328 this.expectedHintCount: 0, | 336 this.expectedHintCount: 0, |
| 329 this.expectedInfoCount: 0}); | 337 this.expectedInfoCount: 0}); |
| 330 } | 338 } |
| OLD | NEW |