💄
This commit is contained in:
parent
3dca69e729
commit
d5a65b5983
1 changed files with 4 additions and 6 deletions
|
@ -335,8 +335,7 @@ suite('Notebook API tests', () => {
|
||||||
assert.deepEqual(cellChangeEventRet.changes[0].deletedCount, 0);
|
assert.deepEqual(cellChangeEventRet.changes[0].deletedCount, 0);
|
||||||
assert.equal(cellChangeEventRet.changes[0].items[0], vscode.notebook.activeNotebookEditor!.document.cells[1]);
|
assert.equal(cellChangeEventRet.changes[0].items[0], vscode.notebook.activeNotebookEditor!.document.cells[1]);
|
||||||
|
|
||||||
await vscode.commands.executeCommand('workbench.action.files.save');
|
await saveFileAndCloseAll(resource);
|
||||||
await vscode.commands.executeCommand('workbench.action.closeAllEditors');
|
|
||||||
});
|
});
|
||||||
|
|
||||||
test('initialzation should not emit cell change events.', async function () {
|
test('initialzation should not emit cell change events.', async function () {
|
||||||
|
@ -352,8 +351,8 @@ suite('Notebook API tests', () => {
|
||||||
assert.equal(count, 0);
|
assert.equal(count, 0);
|
||||||
|
|
||||||
disposables.forEach(d => d.dispose());
|
disposables.forEach(d => d.dispose());
|
||||||
await vscode.commands.executeCommand('workbench.action.files.save');
|
|
||||||
await vscode.commands.executeCommand('workbench.action.closeActiveEditor');
|
await saveFileAndCloseAll(resource);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -489,9 +488,8 @@ suite('notebook workflow', () => {
|
||||||
|
|
||||||
const newActiveCell = vscode.notebook.activeNotebookEditor!.selection;
|
const newActiveCell = vscode.notebook.activeNotebookEditor!.selection;
|
||||||
assert.deepEqual(activeCell, newActiveCell);
|
assert.deepEqual(activeCell, newActiveCell);
|
||||||
await vscode.commands.executeCommand('workbench.action.files.saveAll');
|
|
||||||
await vscode.commands.executeCommand('workbench.action.closeAllEditors');
|
|
||||||
|
|
||||||
|
await saveFileAndCloseAll(resource);
|
||||||
// TODO@rebornix, there are still some events order issue.
|
// TODO@rebornix, there are still some events order issue.
|
||||||
// assert.equal(vscode.notebook.activeNotebookEditor!.document.cells.indexOf(newActiveCell!), 2);
|
// assert.equal(vscode.notebook.activeNotebookEditor!.document.cells.indexOf(newActiveCell!), 2);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue