mirror of
https://github.com/Microsoft/vscode
synced 2024-09-19 18:48:00 +00:00
Merge pull request #65307 from usernamehw/strict_null_splitview
Enable strict null checking for SplitView test
This commit is contained in:
commit
45d4e2182f
|
@ -110,6 +110,7 @@
|
|||
"./vs/base/test/browser/ui/grid/util.ts",
|
||||
"./vs/base/test/browser/ui/list/listView.test.ts",
|
||||
"./vs/base/test/browser/ui/list/rangeMap.test.ts",
|
||||
"./vs/base/test/browser/ui/splitview/splitview.test.ts",
|
||||
"./vs/base/test/browser/ui/scrollbar/scrollableElement.test.ts",
|
||||
"./vs/base/test/browser/ui/scrollbar/scrollbarState.test.ts",
|
||||
"./vs/base/test/browser/ui/tree/asyncDataTree.test.ts",
|
||||
|
|
|
@ -72,13 +72,9 @@ suite('Splitview', () => {
|
|||
container.style.height = `${200}px`;
|
||||
});
|
||||
|
||||
teardown(() => {
|
||||
container = null;
|
||||
});
|
||||
|
||||
test('empty splitview has empty DOM', () => {
|
||||
const splitview = new SplitView(container);
|
||||
assert.equal(container.firstElementChild.firstElementChild.childElementCount, 0, 'split view should be empty');
|
||||
assert.equal(container.firstElementChild!.firstElementChild!.childElementCount, 0, 'split view should be empty');
|
||||
splitview.dispose();
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue