Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(65)

Unified Diff: pkg/analyzer/test/generated/static_warning_code_test.dart

Issue 2298913003: Pull in test_reflective_loader 0.0.4 and switch analyzer to it. (Closed)
Patch Set: Fixes for review comments. Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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}) {}

Powered by Google App Engine
This is Rietveld 408576698