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

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

Issue 2426583003: Improve error messages and add many corrections (Closed)
Patch Set: Created 4 years, 2 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
« no previous file with comments | « pkg/analyzer/lib/src/generated/parser.dart ('k') | pkg/analyzer/test/generated/hint_code_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/generated/compile_time_error_code_test.dart
diff --git a/pkg/analyzer/test/generated/compile_time_error_code_test.dart b/pkg/analyzer/test/generated/compile_time_error_code_test.dart
index e03cba6db8f4d39ba7bea312c9fde85a0fd5d8ba..35dea2a8f20c4e1499ea673ddb3160f3c3c53184 100644
--- a/pkg/analyzer/test/generated/compile_time_error_code_test.dart
+++ b/pkg/analyzer/test/generated/compile_time_error_code_test.dart
@@ -48,15 +48,6 @@ f(x) sync* {
verify([source]);
}
- void fail_compileTimeConstantRaisesException() {
- Source source = addSource(r'''
-''');
- computeLibrarySourceErrors(source);
- assertErrors(
- source, [CompileTimeErrorCode.COMPILE_TIME_CONSTANT_RAISES_EXCEPTION]);
- verify([source]);
- }
-
void fail_constEvalThrowsException() {
Source source = addSource(r'''
class C {
@@ -6168,8 +6159,9 @@ main() {
assertErrors(source, [CompileTimeErrorCode.URI_DOES_NOT_EXIST]);
// Check that the file is represented as missing.
- Source target =
- analysisContext2.getSourcesWithFullName(resourceProvider.convertPath("/target.dart")).first;
+ Source target = analysisContext2
+ .getSourcesWithFullName(resourceProvider.convertPath("/target.dart"))
+ .first;
expect(analysisContext2.getModificationStamp(target), -1);
// Add an overlay in the same way as AnalysisServer.
« no previous file with comments | « pkg/analyzer/lib/src/generated/parser.dart ('k') | pkg/analyzer/test/generated/hint_code_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698