| 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 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 const Test('Serialized symbol literal', const { | 320 const Test('Serialized symbol literal', const { |
| 321 'main.dart': ''' | 321 'main.dart': ''' |
| 322 import 'lib.dart'; | 322 import 'lib.dart'; |
| 323 main() => m(); | 323 main() => m(); |
| 324 ''', | 324 ''', |
| 325 }, preserializedSourceFiles: const { | 325 }, preserializedSourceFiles: const { |
| 326 'lib.dart': ''' | 326 'lib.dart': ''' |
| 327 m() => print(#main); | 327 m() => print(#main); |
| 328 ''', | 328 ''', |
| 329 }), | 329 }), |
| 330 |
| 331 const Test('Multiple structurally identical mixins', const { |
| 332 'main.dart': ''' |
| 333 class S {} |
| 334 class M {} |
| 335 class C1 extends S with M {} |
| 336 class C2 extends S with M {} |
| 337 main() { |
| 338 new C1(); |
| 339 new C2(); |
| 340 } |
| 341 ''', |
| 342 }), |
| 330 ]; | 343 ]; |
| 331 | 344 |
| 332 class Test { | 345 class Test { |
| 333 final String name; | 346 final String name; |
| 334 final Map sourceFiles; | 347 final Map sourceFiles; |
| 335 final Map preserializedSourceFiles; | 348 final Map preserializedSourceFiles; |
| 336 final int expectedErrorCount; | 349 final int expectedErrorCount; |
| 337 final int expectedWarningCount; | 350 final int expectedWarningCount; |
| 338 final int expectedHintCount; | 351 final int expectedHintCount; |
| 339 final int expectedInfoCount; | 352 final int expectedInfoCount; |
| 340 | 353 |
| 341 const Test( | 354 const Test( |
| 342 this.name, | 355 this.name, |
| 343 this.sourceFiles, | 356 this.sourceFiles, |
| 344 {this.preserializedSourceFiles, | 357 {this.preserializedSourceFiles, |
| 345 this.expectedErrorCount: 0, | 358 this.expectedErrorCount: 0, |
| 346 this.expectedWarningCount: 0, | 359 this.expectedWarningCount: 0, |
| 347 this.expectedHintCount: 0, | 360 this.expectedHintCount: 0, |
| 348 this.expectedInfoCount: 0}); | 361 this.expectedInfoCount: 0}); |
| 349 } | 362 } |
| OLD | NEW |