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

Unified Diff: pkg/analysis_server/test/analysis/update_content_test.dart

Issue 2961173002: Remove the stale test for discarding notifications. (Closed)
Patch Set: Created 3 years, 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/test/analysis/update_content_test.dart
diff --git a/pkg/analysis_server/test/analysis/update_content_test.dart b/pkg/analysis_server/test/analysis/update_content_test.dart
index 43b11d659bcdd4672d5853f104a3e86478fbf60e..ea7db860e9b36d0f072d21bd6305451eeb4d6196 100644
--- a/pkg/analysis_server/test/analysis/update_content_test.dart
+++ b/pkg/analysis_server/test/analysis/update_content_test.dart
@@ -50,26 +50,6 @@ class UpdateContentTest extends AbstractAnalysisTest {
}
}
- test_discardNotifications_onSourceChange() async {
- createProject();
- addTestFile('');
- await server.onAnalysisComplete;
- server.setAnalysisSubscriptions({
- AnalysisService.NAVIGATION: [testFile].toSet()
- });
- // update file, analyze, but don't sent notifications
- navigationCount = 0;
- server.updateContent('1', {testFile: new AddContentOverlay('foo() {}')});
- expect(serverErrorCount, 0);
- expect(navigationCount, 0);
- // replace the file contents,
- // should discard any pending notification operations
- server.updateContent('2', {testFile: new AddContentOverlay('bar() {}')});
- await server.onAnalysisComplete;
- expect(serverErrorCount, 0);
- expect(navigationCount, 1);
- }
-
test_illegal_ChangeContentOverlay() {
// It should be illegal to send a ChangeContentOverlay for a file that
// doesn't have an overlay yet.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698