Index: pkg/analyzer/test/generated/static_warning_code_test.dart |
diff --git a/pkg/analyzer/test/generated/static_warning_code_test.dart b/pkg/analyzer/test/generated/static_warning_code_test.dart |
index 21c37786dfe3899cc4de506d16c6a77dc4d562e6..1f5b54dcc47bcf28d2a42e42dccb73b13c8453ba 100644 |
--- a/pkg/analyzer/test/generated/static_warning_code_test.dart |
+++ b/pkg/analyzer/test/generated/static_warning_code_test.dart |
@@ -7,15 +7,15 @@ library analyzer.test.generated.static_warning_code_test; |
import 'package:analyzer/src/generated/engine.dart'; |
import 'package:analyzer/src/generated/error.dart'; |
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(StaticWarningCodeTest); |
+ defineReflectiveTests(StaticWarningCodeTest); |
} |
@reflectiveTest |
@@ -3527,12 +3527,6 @@ f(var l) { |
assertErrors(source, [StaticWarningCode.UNDEFINED_IDENTIFIER]); |
} |
- void test_undefinedIdentifierAwait_function() { |
- Source source = addSource("void a() { await; }"); |
- computeLibrarySourceErrors(source); |
- assertErrors(source, [StaticWarningCode.UNDEFINED_IDENTIFIER_AWAIT]); |
- } |
- |
void test_undefinedIdentifier_importCore_withShow() { |
Source source = addSource(r''' |
import 'dart:core' show List; |
@@ -3594,6 +3588,12 @@ class B extends A { |
assertErrors(source, [StaticWarningCode.UNDEFINED_IDENTIFIER]); |
} |
+ void test_undefinedIdentifierAwait_function() { |
+ Source source = addSource("void a() { await; }"); |
+ computeLibrarySourceErrors(source); |
+ assertErrors(source, [StaticWarningCode.UNDEFINED_IDENTIFIER_AWAIT]); |
+ } |
+ |
void test_undefinedNamedParameter() { |
Source source = addSource(r''' |
f({a, b}) {} |