mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-21 17:19:01 +01:00
disable second move down.
This commit is contained in:
@@ -321,15 +321,15 @@ suite('notebook workflow', () => {
|
||||
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;
|
||||
// await vscode.commands.executeCommand('notebook.cell.moveDown');
|
||||
// activeCell = vscode.notebook.activeNotebookEditor!.selection;
|
||||
|
||||
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');
|
||||
assert.equal(vscode.notebook.activeNotebookEditor!.document.cells[3].source, '');
|
||||
// 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');
|
||||
// assert.equal(vscode.notebook.activeNotebookEditor!.document.cells[3].source, '');
|
||||
|
||||
// ---- ---- //
|
||||
|
||||
|
||||
Reference in New Issue
Block a user