OLD | NEW |
---|---|
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, 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 analyzer.test.src.summary.resynthesize_kernel_test; | 5 library analyzer.test.src.summary.resynthesize_kernel_test; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 | 8 |
9 import 'package:analyzer/file_system/file_system.dart'; | 9 import 'package:analyzer/file_system/file_system.dart'; |
10 import 'package:analyzer/file_system/memory_file_system.dart'; | 10 import 'package:analyzer/file_system/memory_file_system.dart'; |
(...skipping 21 matching lines...) Expand all Loading... | |
32 | 32 |
33 main() { | 33 main() { |
34 defineReflectiveSuite(() { | 34 defineReflectiveSuite(() { |
35 defineReflectiveTests(ResynthesizeKernelStrongTest); | 35 defineReflectiveTests(ResynthesizeKernelStrongTest); |
36 }); | 36 }); |
37 } | 37 } |
38 | 38 |
39 /// Tests marked with this annotation fail because of a Fasta problem. | 39 /// Tests marked with this annotation fail because of a Fasta problem. |
40 const fastaProblem = const Object(); | 40 const fastaProblem = const Object(); |
41 | 41 |
42 /// Tests marked with this annotation fail because they test features that | |
43 /// were implemented in Analyzer, but are intentionally not included into | |
44 /// the Dart 2.0 plan, so will not be implemented by Fasta. | |
45 const notForDart2 = const Object(); | |
46 | |
42 @reflectiveTest | 47 @reflectiveTest |
43 class ResynthesizeKernelStrongTest extends ResynthesizeTest { | 48 class ResynthesizeKernelStrongTest extends ResynthesizeTest { |
44 static const DEBUG = false; | 49 static const DEBUG = false; |
45 | 50 |
46 final resourceProvider = new MemoryResourceProvider(context: pathos.posix); | 51 final resourceProvider = new MemoryResourceProvider(context: pathos.posix); |
47 | 52 |
48 @override | 53 @override |
49 bool get isSharedFrontEnd => true; | 54 bool get isSharedFrontEnd => true; |
50 | 55 |
51 @override | 56 @override |
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
304 test_error_extendsEnum() async { | 309 test_error_extendsEnum() async { |
305 await super.test_error_extendsEnum(); | 310 await super.test_error_extendsEnum(); |
306 } | 311 } |
307 | 312 |
308 @failingTest | 313 @failingTest |
309 test_executable_parameter_type_typedef() async { | 314 test_executable_parameter_type_typedef() async { |
310 await super.test_executable_parameter_type_typedef(); | 315 await super.test_executable_parameter_type_typedef(); |
311 } | 316 } |
312 | 317 |
313 @failingTest | 318 @failingTest |
319 @notForDart2 | |
Brian Wilkerson
2017/08/31 20:10:10
Are you sure? Both `parseImport` and `parseExport`
| |
314 test_export_configurations_useDefault() async { | 320 test_export_configurations_useDefault() async { |
315 await super.test_export_configurations_useDefault(); | 321 await super.test_export_configurations_useDefault(); |
316 } | 322 } |
317 | 323 |
318 @failingTest | 324 @failingTest |
325 @notForDart2 | |
319 test_export_configurations_useFirst() async { | 326 test_export_configurations_useFirst() async { |
320 await super.test_export_configurations_useFirst(); | 327 await super.test_export_configurations_useFirst(); |
321 } | 328 } |
322 | 329 |
323 @failingTest | 330 @failingTest |
331 @notForDart2 | |
324 test_export_configurations_useSecond() async { | 332 test_export_configurations_useSecond() async { |
325 await super.test_export_configurations_useSecond(); | 333 await super.test_export_configurations_useSecond(); |
326 } | 334 } |
327 | 335 |
328 @failingTest | 336 @failingTest |
337 @notForDart2 | |
329 test_exportImport_configurations_useDefault() async { | 338 test_exportImport_configurations_useDefault() async { |
330 await super.test_exportImport_configurations_useDefault(); | 339 await super.test_exportImport_configurations_useDefault(); |
331 } | 340 } |
332 | 341 |
333 @failingTest | 342 @failingTest |
343 @notForDart2 | |
334 test_exportImport_configurations_useFirst() async { | 344 test_exportImport_configurations_useFirst() async { |
335 await super.test_exportImport_configurations_useFirst(); | 345 await super.test_exportImport_configurations_useFirst(); |
336 } | 346 } |
337 | 347 |
338 @failingTest | 348 @failingTest |
339 test_genericFunction_asGenericFunctionReturnType() async { | 349 test_genericFunction_asGenericFunctionReturnType() async { |
340 await super.test_genericFunction_asGenericFunctionReturnType(); | 350 await super.test_genericFunction_asGenericFunctionReturnType(); |
341 } | 351 } |
342 | 352 |
343 @failingTest | 353 @failingTest |
344 test_genericFunction_asParameterType() async { | 354 test_genericFunction_asParameterType() async { |
345 await super.test_genericFunction_asParameterType(); | 355 await super.test_genericFunction_asParameterType(); |
346 } | 356 } |
347 | 357 |
348 @failingTest | 358 @failingTest |
359 @notForDart2 | |
349 test_import_configurations_useDefault() async { | 360 test_import_configurations_useDefault() async { |
350 await super.test_import_configurations_useDefault(); | 361 await super.test_import_configurations_useDefault(); |
351 } | 362 } |
352 | 363 |
353 @failingTest | 364 @failingTest |
365 @notForDart2 | |
354 test_import_configurations_useFirst() async { | 366 test_import_configurations_useFirst() async { |
355 await super.test_import_configurations_useFirst(); | 367 await super.test_import_configurations_useFirst(); |
356 } | 368 } |
357 | 369 |
358 @failingTest | 370 @failingTest |
359 test_import_deferred() async { | 371 test_import_deferred() async { |
360 await super.test_import_deferred(); | 372 await super.test_import_deferred(); |
361 } | 373 } |
362 | 374 |
363 @failingTest | 375 @failingTest |
(...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
801 @override | 813 @override |
802 Future<List<int>> readAsBytes() async { | 814 Future<List<int>> readAsBytes() async { |
803 return file.readAsBytesSync(); | 815 return file.readAsBytesSync(); |
804 } | 816 } |
805 | 817 |
806 @override | 818 @override |
807 Future<String> readAsString() async { | 819 Future<String> readAsString() async { |
808 return file.readAsStringSync(); | 820 return file.readAsStringSync(); |
809 } | 821 } |
810 } | 822 } |
OLD | NEW |