Part 2 - Make Model view components disposable + dispose all emitters (#24097)

This commit is contained in:
Cheena Malhotra
2023-08-23 12:46:09 -07:00
committed by GitHub
parent 25a658775c
commit 6c6464e772
58 changed files with 435 additions and 195 deletions

View File

@@ -387,6 +387,8 @@ suite('ExtHostModelView Validation Tests', () => {
rootComponent.properties.data &&
rootComponent.properties.data.length === 0;
})), Times.once());
declarativeTable.dispose();
});
test('initialized with string data has correct properties', async () => {
@@ -401,6 +403,8 @@ suite('ExtHostModelView Validation Tests', () => {
rootComponent.properties.data &&
rootComponent.properties.data[0][0] === testData;
})), Times.once());
declarativeTable.dispose();
});
test('initialized with component data converts to id', async () => {
@@ -416,6 +420,8 @@ suite('ExtHostModelView Validation Tests', () => {
rootComponent.properties.data &&
rootComponent.properties.data[0][0] === button.id;
})), Times.once());
declarativeTable.dispose();
});
test('when added to container with component data converts to id', async () => {
@@ -442,6 +448,8 @@ suite('ExtHostModelView Validation Tests', () => {
item.componentShape.properties.data &&
item.componentShape.properties.data[0][0] === button.id;
})), Times.once());
declarativeTable.dispose();
});
});
});