Chromium Code Reviews| Index: pkg/analyzer/test/generated/static_type_warning_code_test.dart |
| diff --git a/pkg/analyzer/test/generated/static_type_warning_code_test.dart b/pkg/analyzer/test/generated/static_type_warning_code_test.dart |
| index 241e3af4ba10cc24d171b6ced6d55853523f66d9..a53b771afaa82fea37128f417c9ba508d995668c 100644 |
| --- a/pkg/analyzer/test/generated/static_type_warning_code_test.dart |
| +++ b/pkg/analyzer/test/generated/static_type_warning_code_test.dart |
| @@ -8,16 +8,16 @@ import 'package:analyzer/src/generated/engine.dart'; |
| import 'package:analyzer/src/generated/error.dart'; |
| import 'package:analyzer/src/generated/java_core.dart' show formatList; |
| import 'package:analyzer/src/generated/source_io.dart'; |
| +import 'package:test_reflective_loader/test_reflective_loader.dart'; |
| import 'package:unittest/unittest.dart'; |
| -import '../reflective_tests.dart'; |
| import '../utils.dart'; |
| import 'resolver_test_case.dart'; |
| main() { |
| initializeTestEnvironment(); |
| - runReflectiveTests(StaticTypeWarningCodeTest); |
| - runReflectiveTests(StrongModeStaticTypeWarningCodeTest); |
| + defineReflectiveTests(StaticTypeWarningCodeTest); |
| + defineReflectiveTests(StrongModeStaticTypeWarningCodeTest); |
| } |
| @reflectiveTest |
| @@ -103,6 +103,17 @@ main() { |
| [StaticTypeWarningCode.UNDEFINED_METHOD]); |
| } |
| + void fail_typeArgumentNotMatchingBounds_ofFunctionTypeAlias() { |
| + assertErrorsInCode( |
| + r''' |
| +class A {} |
| +class B {} |
| +typedef F<T extends A>(); |
| +F<B> fff; |
| +''', |
| + [StaticTypeWarningCode.TYPE_ARGUMENT_NOT_MATCHING_BOUNDS]); |
| + } |
| + |
| void fail_undefinedEnumConstant() { |
| // We need a way to set the parseEnum flag in the parser to true. |
| assertErrorsInCode( |
| @@ -945,6 +956,7 @@ f() { |
| [StaticTypeWarningCode.NON_BOOL_CONDITION]); |
| } |
| + // https://github.com/dart-lang/sdk/issues/24713 |
|
Brian Wilkerson
2016/08/31 20:38:01
The comment floated to a different method. We shou
scheglov
2016/08/31 20:44:05
Done.
|
| void test_nonBoolCondition_do() { |
| assertErrorsInCode( |
| r''' |
| @@ -954,7 +966,6 @@ f() { |
| [StaticTypeWarningCode.NON_BOOL_CONDITION]); |
| } |
| - // https://github.com/dart-lang/sdk/issues/24713 |
| void test_nonBoolCondition_for() { |
| assertErrorsInCode( |
| r''' |
| @@ -1381,17 +1392,6 @@ f() { return new G<A>(); } |
| [StaticTypeWarningCode.TYPE_ARGUMENT_NOT_MATCHING_BOUNDS]); |
| } |
| - void fail_typeArgumentNotMatchingBounds_ofFunctionTypeAlias() { |
| - assertErrorsInCode( |
| - r''' |
| -class A {} |
| -class B {} |
| -typedef F<T extends A>(); |
| -F<B> fff; |
| -''', |
| - [StaticTypeWarningCode.TYPE_ARGUMENT_NOT_MATCHING_BOUNDS]); |
| - } |
| - |
| void test_typeArgumentNotMatchingBounds_parameter() { |
| assertErrorsInCode( |
| r''' |