| 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 b3e4254ccfcfcb53902a763c910b3cd625367112..6577d9fdb00ef55b4f9dd3f900e2c2ecd03a2d38 100644
|
| --- a/pkg/analyzer/test/generated/compile_time_error_code_test.dart
|
| +++ b/pkg/analyzer/test/generated/compile_time_error_code_test.dart
|
| @@ -6172,16 +6172,21 @@ main() {
|
| await computeAnalysisResult(source);
|
| assertErrors(source, [CompileTimeErrorCode.URI_DOES_NOT_EXIST]);
|
|
|
| - // Check that the file is represented as missing.
|
| - Source target = analysisContext2
|
| - .getSourcesWithFullName(resourceProvider.convertPath("/target.dart"))
|
| - .first;
|
| - expect(analysisContext2.getModificationStamp(target), -1);
|
| -
|
| - // Add an overlay in the same way as AnalysisServer.
|
| - analysisContext2
|
| - ..setContents(target, "")
|
| - ..handleContentsChanged(target, null, "", true);
|
| + String targetPath = resourceProvider.convertPath('/target.dart');
|
| + if (enableNewAnalysisDriver) {
|
| + // Add an overlay in the same way as AnalysisServer.
|
| + fileContentOverlay[targetPath] = '';
|
| + driver.changeFile(targetPath);
|
| + } else {
|
| + // Check that the file is represented as missing.
|
| + Source target = analysisContext2.getSourcesWithFullName(targetPath).first;
|
| + expect(analysisContext2.getModificationStamp(target), -1);
|
| +
|
| + // Add an overlay in the same way as AnalysisServer.
|
| + analysisContext2
|
| + ..setContents(target, "")
|
| + ..handleContentsChanged(target, null, "", true);
|
| + }
|
|
|
| // Make sure the error goes away.
|
| await computeAnalysisResult(source);
|
|
|