| 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 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 362 'main.dart': ''' | 362 'main.dart': ''' |
| 363 import 'a.dart' deferred as lib; | 363 import 'a.dart' deferred as lib; |
| 364 main() { | 364 main() { |
| 365 lib.foo(); | 365 lib.foo(); |
| 366 } | 366 } |
| 367 ''', | 367 ''', |
| 368 'a.dart': ''' | 368 'a.dart': ''' |
| 369 void foo() {} | 369 void foo() {} |
| 370 ''', | 370 ''', |
| 371 }), | 371 }), |
| 372 |
| 373 const Test('fromEnvironment constants', const { |
| 374 'main.dart': ''' |
| 375 main() => const String.fromEnvironment("foo"); |
| 376 ''', |
| 377 }), |
| 372 ]; | 378 ]; |
| 373 | 379 |
| 374 class Test { | 380 class Test { |
| 375 final String name; | 381 final String name; |
| 376 final Map sourceFiles; | 382 final Map sourceFiles; |
| 377 final Map preserializedSourceFiles; | 383 final Map preserializedSourceFiles; |
| 378 final Map unserializedSourceFiles; | 384 final Map unserializedSourceFiles; |
| 379 final int expectedErrorCount; | 385 final int expectedErrorCount; |
| 380 final int expectedWarningCount; | 386 final int expectedWarningCount; |
| 381 final int expectedHintCount; | 387 final int expectedHintCount; |
| 382 final int expectedInfoCount; | 388 final int expectedInfoCount; |
| 383 | 389 |
| 384 const Test( | 390 const Test( |
| 385 this.name, | 391 this.name, |
| 386 this.sourceFiles, | 392 this.sourceFiles, |
| 387 {this.preserializedSourceFiles, | 393 {this.preserializedSourceFiles, |
| 388 this.unserializedSourceFiles, | 394 this.unserializedSourceFiles, |
| 389 this.expectedErrorCount: 0, | 395 this.expectedErrorCount: 0, |
| 390 this.expectedWarningCount: 0, | 396 this.expectedWarningCount: 0, |
| 391 this.expectedHintCount: 0, | 397 this.expectedHintCount: 0, |
| 392 this.expectedInfoCount: 0}); | 398 this.expectedInfoCount: 0}); |
| 393 } | 399 } |
| OLD | NEW |