add error messages for notebook workflow integration tests.
This commit is contained in:
parent
3eb6c1704b
commit
56393440fb
1 changed files with 5 additions and 1 deletions
|
@ -318,10 +318,14 @@ suite('notebook workflow', () => {
|
|||
// ---- move up and down ---- //
|
||||
|
||||
await vscode.commands.executeCommand('notebook.cell.moveDown');
|
||||
assert.equal(vscode.notebook.activeNotebookEditor!.document.cells.indexOf(vscode.notebook.activeNotebookEditor!.selection!), 1,
|
||||
`first move down, active cell ${vscode.notebook.activeNotebookEditor!.selection!.uri.toString()}, ${vscode.notebook.activeNotebookEditor!.selection!.source}`);
|
||||
|
||||
await vscode.commands.executeCommand('notebook.cell.moveDown');
|
||||
activeCell = vscode.notebook.activeNotebookEditor!.selection;
|
||||
|
||||
assert.equal(vscode.notebook.activeNotebookEditor!.document.cells.indexOf(activeCell!), 2);
|
||||
assert.equal(vscode.notebook.activeNotebookEditor!.document.cells.indexOf(activeCell!), 2,
|
||||
`second move down, active cell ${vscode.notebook.activeNotebookEditor!.selection!.uri.toString()}, ${vscode.notebook.activeNotebookEditor!.selection!.source}`);
|
||||
assert.equal(vscode.notebook.activeNotebookEditor!.document.cells[0].source, 'test');
|
||||
assert.equal(vscode.notebook.activeNotebookEditor!.document.cells[1].source, '');
|
||||
assert.equal(vscode.notebook.activeNotebookEditor!.document.cells[2].source, 'test');
|
||||
|
|
Loading…
Reference in a new issue