| Index: pkg/analysis_server/test/services/index/store/split_store_test.dart
|
| diff --git a/pkg/analysis_server/test/services/index/store/split_store_test.dart b/pkg/analysis_server/test/services/index/store/split_store_test.dart
|
| index 02fa3fe16f00cd82bd0035c8c2f9dd4816b12b51..b954996bfc6a4478c9d7fd7f4a50825b76a57aef 100644
|
| --- a/pkg/analysis_server/test/services/index/store/split_store_test.dart
|
| +++ b/pkg/analysis_server/test/services/index/store/split_store_test.dart
|
| @@ -666,6 +666,22 @@ class _SplitIndexStoreTest {
|
| expect(store.aboutToIndexHtml(contextA, htmlElementA), isFalse);
|
| }
|
|
|
| + test_cancelIndexDart() {
|
| + LocationImpl locationA = mockLocation(indexableA);
|
| + LocationImpl locationB = mockLocation(indexableA);
|
| + store.aboutToIndexDart(contextA, unitElementA);
|
| + store.recordRelationship(indexableA, relationship, locationA);
|
| + store.recordRelationship(indexableA, relationship, locationB);
|
| + store.recordTopLevelDeclaration(elementA);
|
| + store.cancelIndexDart();
|
| + return store
|
| + .getRelationships(indexableA, relationship)
|
| + .then((List<LocationImpl> locations) {
|
| + assertLocations(locations, []);
|
| + expect(store.getTopLevelDeclarations((name) => true), isEmpty);
|
| + });
|
| + }
|
| +
|
| void test_clear() {
|
| LocationImpl locationA = mockLocation(indexableA);
|
| store.aboutToIndexDart(contextA, unitElementA);
|
|
|