This is an automated email from the ASF dual-hosted git repository.
davin pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/daffodil-vscode.git
The following commit(s) were added to refs/heads/main by this push:
new a8b5b44 #1008 - shutdown OmegaEdit when running yarn test on Windows
a8b5b44 is described below
commit a8b5b449dc0e2bb196691c10c34ef2c7fbb4b64f
Author: Davin Shearer <[email protected]>
AuthorDate: Wed Dec 4 14:56:54 2024 -0500
#1008 - shutdown OmegaEdit when running yarn test on Windows
---
src/tests/suite/dataEditor.test.ts | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/src/tests/suite/dataEditor.test.ts
b/src/tests/suite/dataEditor.test.ts
index c2e52c7..07dea5b 100644
--- a/src/tests/suite/dataEditor.test.ts
+++ b/src/tests/suite/dataEditor.test.ts
@@ -147,6 +147,18 @@ suite('Data Editor Test Suite', () => {
assert.ok(dataEditWebView)
assert.strictEqual(dataEditWebView.panel.active, true)
assert.strictEqual(dataEditWebView.panel.title, 'Data Editor')
+
+ // Listen for the dispose event
+ let isDisposed = false
+ dataEditWebView.panel.onDidDispose(() => {
+ isDisposed = true
+ })
+
+ // Close the data editor panel
+ await dataEditWebView.panel.dispose()
+
+ // Verify that the panel has been disposed
+ assert.strictEqual(isDisposed, true)
})
})
})