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

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

Issue 1780623002: Clean up some copy/paste in a test. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 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/resolver_test.dart
diff --git a/pkg/analyzer/test/generated/resolver_test.dart b/pkg/analyzer/test/generated/resolver_test.dart
index 1a6c459aa6b6f2a92c3abaf4d78a5b9ea58023c3..b51be7fd29ec97c53abb3da25a75eb60c498236f 100644
--- a/pkg/analyzer/test/generated/resolver_test.dart
+++ b/pkg/analyzer/test/generated/resolver_test.dart
@@ -8371,7 +8371,7 @@ class ResolverTestCase extends EngineTestCase {
}
/**
- * Asserts that [code] has errors with the given error codes.
+ * Asserts that [code] verifies, but has errors with the given error codes.
*
* Like [assertErrors], but takes a string of source code.
*/
@@ -8384,6 +8384,17 @@ class ResolverTestCase extends EngineTestCase {
}
/**
+ * Asserts that [code] has errors with the given error codes.
+ *
+ * Like [assertErrors], but takes a string of source code.
+ */
+ void assertErrorsInUnverifiedCode(String code, List<ErrorCode> errors) {
+ Source source = addSource(code);
+ computeLibrarySourceErrors(source);
+ assertErrors(source, errors);
+ }
+
+ /**
* Assert that no errors have been reported against the given source.
*
* @param source the source against which no errors should have been reported

Powered by Google App Engine
This is Rietveld 408576698