This commit is contained in:
Don Jayamanne
2021-03-08 11:02:10 -08:00
parent 3df01b4ae7
commit 584999658e

View File

@@ -1240,6 +1240,12 @@ suite('Notebook API tests', function () {
assert.strictEqual(document.cells[0].metadata.executionOrder, executionOrder);
assert.strictEqual(document.cells[0].metadata.runState, vscode.NotebookCellRunState.Success);
});
test.only('Opening a notebook should fire activeNotebook event changed only once', async function () {
const openedEditor = asPromise(vscode.window.onDidChangeActiveNotebookEditor);
const resource = await createRandomFile('', undefined, '.vsctestnb');
await vscode.notebook.openNotebookDocument(resource);
assert.ok(await openedEditor);
});
// });