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

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

Issue 1410493005: Tweak for make test passing with useTaskModel = true. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 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 | « 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 656e06a7a808812fe1bb17d0920c60343f5c759a..6fbc5d8427418c1aae4aaa3c4cf65703acd17b26 100644
--- a/pkg/analysis_server/test/analysis/update_content_test.dart
+++ b/pkg/analysis_server/test/analysis/update_content_test.dart
@@ -107,7 +107,11 @@ class UpdateContentTest extends AbstractAnalysisTest {
server.updateContent('2', {testFile: new RemoveContentOverlay()});
// Validate that at the end the unit was indexed.
await server.onAnalysisComplete;
- verify(server.index.index(anyObject, testUnitMatcher)).times(2);
+ if (AnalysisEngine.instance.useTaskModel) {
+ verify(server.index.index(anyObject, testUnitMatcher)).times(3);
+ } else {
+ verify(server.index.index(anyObject, testUnitMatcher)).times(2);
+ }
}
test_multiple_contexts() async {
« 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