| // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file |
| // for details. All rights reserved. Use of this source code is governed by a |
| // BSD-style license that can be found in the LICENSE file. |
| |
| import 'package:test_reflective_loader/test_reflective_loader.dart'; |
| |
| import 'non_error_resolver_driver_test.dart'; |
| |
| main() { |
| defineReflectiveSuite(() { |
| defineReflectiveTests(NonErrorResolverTest_Kernel); |
| }); |
| } |
| |
| /// Tests marked with this annotation fail because they test features that |
| /// were implemented in Analyzer, but are intentionally not included into |
| /// the Dart 2.0 plan, or disabled for Dart 2.0 altogether. |
| const notForDart2 = const Object(); |
| |
| /// Tests marked with this annotations fail because we either have not triaged |
| /// them, or know that this is an analyzer problem. |
| const potentialAnalyzerProblem = const Object(); |
| |
| /// Tests marked with this annotation fail because of an Analyzer problem. |
| class AnalyzerProblem { |
| const AnalyzerProblem(String issueUri); |
| } |
| |
| /// Tests marked with this annotation fail because of a Fasta problem. |
| class FastaProblem { |
| const FastaProblem(String issueUri); |
| } |
| |
| @reflectiveTest |
| class NonErrorResolverTest_Kernel extends NonErrorResolverTest_Driver { |
| @override |
| bool get enableKernelDriver => true; |
| |
| @override |
| bool get useCFE => true; |
| |
| @override |
| @failingTest |
| @AnalyzerProblem('https://github.com/dart-lang/sdk/issues/33636') |
| test_ambiguousImport_showCombinator() async { |
| return super.test_ambiguousImport_showCombinator(); |
| } |
| |
| @override |
| @failingTest |
| @FastaProblem('https://github.com/dart-lang/sdk/issues/33795') |
| test_annotated_partOfDeclaration() async { |
| return super.test_annotated_partOfDeclaration(); |
| } |
| |
| @override |
| @failingTest |
| test_argumentTypeNotAssignable_fieldFormalParameterElement_member() { |
| // Bad state: Not found #lib1::TimestampedObject::E in null |
| return super |
| .test_argumentTypeNotAssignable_fieldFormalParameterElement_member(); |
| } |
| |
| @override |
| @failingTest |
| @FastaProblem('https://github.com/dart-lang/sdk/issues/31604') |
| test_commentReference_beforeConstructor() async { |
| return super.test_commentReference_beforeConstructor(); |
| } |
| |
| @override |
| @failingTest |
| @FastaProblem('https://github.com/dart-lang/sdk/issues/31604') |
| test_commentReference_beforeEnum() async { |
| return super.test_commentReference_beforeEnum(); |
| } |
| |
| @override |
| @failingTest |
| @FastaProblem('https://github.com/dart-lang/sdk/issues/31604') |
| test_commentReference_beforeFunction_blockBody() async { |
| return super.test_commentReference_beforeFunction_blockBody(); |
| } |
| |
| @override |
| @failingTest |
| @FastaProblem('https://github.com/dart-lang/sdk/issues/31604') |
| test_commentReference_beforeFunction_expressionBody() async { |
| return super.test_commentReference_beforeFunction_expressionBody(); |
| } |
| |
| @override |
| @failingTest |
| @FastaProblem('https://github.com/dart-lang/sdk/issues/31604') |
| test_commentReference_beforeFunctionTypeAlias() async { |
| return super.test_commentReference_beforeFunctionTypeAlias(); |
| } |
| |
| @override |
| @failingTest |
| @FastaProblem('https://github.com/dart-lang/sdk/issues/31604') |
| test_commentReference_beforeGenericTypeAlias() async { |
| return super.test_commentReference_beforeGenericTypeAlias(); |
| } |
| |
| @override |
| @failingTest |
| @FastaProblem('https://github.com/dart-lang/sdk/issues/31604') |
| test_commentReference_beforeGetter() async { |
| return super.test_commentReference_beforeGetter(); |
| } |
| |
| @override |
| @failingTest |
| @FastaProblem('https://github.com/dart-lang/sdk/issues/31604') |
| test_commentReference_beforeMethod() async { |
| return super.test_commentReference_beforeMethod(); |
| } |
| |
| @override |
| @failingTest |
| @FastaProblem('https://github.com/dart-lang/sdk/issues/31604') |
| test_commentReference_class() async { |
| return super.test_commentReference_class(); |
| } |
| |
| @override |
| @failingTest |
| @FastaProblem('https://github.com/dart-lang/sdk/issues/31604') |
| test_commentReference_setter() async { |
| return super.test_commentReference_setter(); |
| } |
| |
| @override |
| @failingTest |
| @potentialAnalyzerProblem |
| test_conflictingStaticSetterAndInstanceMember_thisClass_method() async { |
| // Bad state: Unable to convert (null, @39, Conflicts with member 'x'.) |
| return super |
| .test_conflictingStaticSetterAndInstanceMember_thisClass_method(); |
| } |
| |
| @override |
| @failingTest |
| @FastaProblem('https://github.com/dart-lang/sdk/issues/33676') |
| test_constConstructorWithMixinWithField() { |
| // Bad state: Unable to convert (Unspecified, null, @52, Can't extend a mixin application and be 'const'.) |
| return super.test_constConstructorWithMixinWithField(); |
| } |
| |
| @override |
| @failingTest |
| @potentialAnalyzerProblem |
| test_constConstructorWithNonConstSuper_unresolved() async { |
| return super.test_constConstructorWithNonConstSuper_unresolved(); |
| } |
| |
| @override |
| @failingTest |
| test_fieldFormalParameter_genericFunctionTyped() { |
| // Expected 0 errors of type ParserErrorCode.EXPECTED_TOKEN, found 1 (88) |
| return super.test_fieldFormalParameter_genericFunctionTyped(); |
| } |
| |
| @override |
| @failingTest |
| test_fieldFormalParameter_genericFunctionTyped_named() { |
| // Expected 0 errors of type ParserErrorCode.EXPECTED_TOKEN, found 1 (89) |
| return super.test_fieldFormalParameter_genericFunctionTyped_named(); |
| } |
| |
| @override |
| @failingTest |
| @potentialAnalyzerProblem |
| test_finalNotInitialized_hasNativeClause_hasConstructor() async { |
| return super.test_finalNotInitialized_hasNativeClause_hasConstructor(); |
| } |
| |
| @override |
| @failingTest |
| @potentialAnalyzerProblem |
| test_finalNotInitialized_hasNativeClause_noConstructor() async { |
| return super.test_finalNotInitialized_hasNativeClause_noConstructor(); |
| } |
| |
| @override |
| @failingTest |
| test_forEach_genericFunctionType() { |
| // Bad state: Not found T in main() → dynamic |
| return super.test_forEach_genericFunctionType(); |
| } |
| |
| @override |
| @failingTest |
| @FastaProblem('https://github.com/dart-lang/sdk/issues/33799') |
| test_functionTypeAlias_scope_signature() async { |
| // Caused by Bad state: Found 1 annotation nodes and 0 element annotations |
| return super.test_functionTypeAlias_scope_signature(); |
| } |
| |
| @override // passes with kernel |
| test_infer_mixin() => super.test_infer_mixin(); |
| |
| @override // Passes with kernel |
| test_infer_mixin_multiplyConstrained() => |
| super.test_infer_mixin_multiplyConstrained(); |
| |
| @override |
| @failingTest |
| test_invocationOfNonFunction_functionTypeTypeParameter() { |
| // Bad state: Not found #lib2::C::T in null |
| return super.test_invocationOfNonFunction_functionTypeTypeParameter(); |
| } |
| |
| @override |
| @failingTest |
| @FastaProblem('https://github.com/dart-lang/sdk/issues/31758') |
| test_invocationOfNonFunction_Object() async { |
| return super.test_invocationOfNonFunction_Object(); |
| } |
| |
| @override |
| @failingTest |
| @FastaProblem('https://github.com/dart-lang/sdk/issues/30609') |
| test_metadata_enumConstantDeclaration() { |
| // Failed to resolve 2 nodes |
| return super.test_metadata_enumConstantDeclaration(); |
| } |
| |
| @override |
| @failingTest |
| test_nativeConstConstructor() { |
| // Expected 0 errors of type ParserErrorCode.CONST_CONSTRUCTOR_WITH_BODY, found 1 (35) |
| return super.test_nativeConstConstructor(); |
| } |
| |
| @override |
| @failingTest |
| @FastaProblem('https://github.com/dart-lang/sdk/issues/31628') |
| test_nonConstCaseExpression_constField() async { |
| return super.test_nonConstCaseExpression_constField(); |
| } |
| |
| @override |
| @failingTest |
| @FastaProblem('https://github.com/dart-lang/sdk/issues/31627') |
| test_nonConstMapKey_constField() async { |
| return super.test_nonConstMapKey_constField(); |
| } |
| |
| @override |
| @failingTest |
| @notForDart2 |
| test_null_callMethod() async { |
| return super.test_null_callMethod(); |
| } |
| |
| @override |
| @failingTest |
| @notForDart2 |
| test_null_callOperator() async { |
| return super.test_null_callOperator(); |
| } |
| |
| @override |
| @failingTest |
| test_optionalNew_rewrite_instantiatesToBounds() { |
| // Bad state: No data for named1 at 21 |
| return super.test_optionalNew_rewrite_instantiatesToBounds(); |
| } |
| |
| @override |
| @failingTest |
| @FastaProblem('https://github.com/dart-lang/sdk/issues/33677') |
| test_undefinedIdentifier_synthetic_whenExpression() { |
| // Expected 0 errors of type StaticTypeWarningCode.UNDEFINED_GETTER, found 1 (29) |
| return super.test_undefinedIdentifier_synthetic_whenExpression(); |
| } |
| |
| @override |
| @failingTest |
| @potentialAnalyzerProblem |
| test_undefinedIdentifier_synthetic_whenMethodName() async { |
| return super.test_undefinedIdentifier_synthetic_whenMethodName(); |
| } |
| } |