testing: bump distro and make document polyfill work again

This commit is contained in:
Connor Peet
2021-04-20 17:03:37 -07:00
parent c67ac5d083
commit 1d951484ed
4 changed files with 233 additions and 249 deletions

View File

@@ -623,6 +623,7 @@ export class TestItemFilteredWrapper extends TestItemImpl {
this.description = actual.description;
this.error = actual.error;
this.status = actual.status;
this.resolveHandler = actual.resolveHandler;
const wrapperApi = getPrivateApiFor(this);
const actualApi = getPrivateApiFor(actual);
@@ -654,10 +655,10 @@ export class TestItemFilteredWrapper extends TestItemImpl {
// filter. Synchronize them.
for (const rawChild of this.actual.children.values()) {
const wrapper = TestItemFilteredWrapper.getWrapperForTestItem(rawChild, this.filterDocument, this);
if (wrapper.hasNodeMatchingFilter) {
this.addChild(wrapper);
} else {
if (!wrapper.hasNodeMatchingFilter) {
wrapper.dispose();
} else if (!this.children.has(wrapper.id)) {
this.addChild(wrapper);
}
}
@@ -670,6 +671,14 @@ export class TestItemFilteredWrapper extends TestItemImpl {
return this._cachedMatchesFilter;
}
public override dispose() {
if (this.actualParent) {
getPrivateApiFor(this.actualParent).children.delete(this.id);
}
getPrivateApiFor(this).bus.fire([ExtHostTestItemEventType.Disposed]);
}
}
/**