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

Unified Diff: pkg/analysis_server/test/analysis_server_test.dart

Issue 2314933003: Issue 27130. Fix applying changes to .analysis_options on save. (Closed)
Patch Set: Created 4 years, 3 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/analysis_server/lib/src/analysis_server.dart ('k') | pkg/analyzer/lib/src/context/context.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/test/analysis_server_test.dart
diff --git a/pkg/analysis_server/test/analysis_server_test.dart b/pkg/analysis_server/test/analysis_server_test.dart
index af36f04a87b37bdb9915981d3aaeed67501f44d3..5b4efed18ee8a48fa9d9c8b5e2cab28a010901d6 100644
--- a/pkg/analysis_server/test/analysis_server_test.dart
+++ b/pkg/analysis_server/test/analysis_server_test.dart
@@ -529,28 +529,6 @@ analyzer:
});
}
- test_watch_modifyFile_hasOverlay() async {
- server.serverServices.add(ServerService.STATUS);
- // configure the project
- String projectPath = '/root';
- String filePath = '/root/test.dart';
- resourceProvider.newFolder(projectPath);
- resourceProvider.newFile(filePath, '// 111');
- server.setAnalysisRoots('0', ['/root'], [], {});
- await pumpEventQueue();
- // add overlay
- server.updateContent('1', {filePath: new AddContentOverlay('// 222')});
- await pumpEventQueue();
- // update the file
- channel.notificationsReceived.clear();
- resourceProvider.modifyFile(filePath, '// 333');
- await pumpEventQueue();
- // the file has an overlay, so the file-system change was ignored
- expect(channel.notificationsReceived.any((notification) {
- return notification.event == SERVER_STATUS;
- }), isFalse);
- }
-
void _assertContextOfFolder(
AnalysisContext context, String expectedFolderPath) {
Folder expectedFolder = resourceProvider.newFolder(expectedFolderPath);
« no previous file with comments | « pkg/analysis_server/lib/src/analysis_server.dart ('k') | pkg/analyzer/lib/src/context/context.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698