Skip to content

Commit df3d767

Browse files
committed
more crash testing
1 parent 0ac03e4 commit df3d767

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

extensions/vscode-notebook-tests/src/notebook.test.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,19 @@ suite('Notebook API tests', () => {
6969
// }
7070
// });
7171

72+
// test.only('crash', async function () {
73+
// for (let i = 0; i < 200; i++) {
74+
// let resource = vscode.Uri.file(join(vscode.workspace.rootPath || '', './first.vsctestnb'));
75+
// await vscode.commands.executeCommand('vscode.openWith', resource, 'notebookCoreTest');
76+
// await vscode.commands.executeCommand('workbench.action.files.save');
77+
// await vscode.commands.executeCommand('workbench.action.closeAllEditors');
78+
// resource = vscode.Uri.file(join(vscode.workspace.rootPath || '', './empty.vsctestnb'));
79+
// await vscode.commands.executeCommand('vscode.openWith', resource, 'notebookCoreTest');
80+
// await vscode.commands.executeCommand('workbench.action.files.save');
81+
// await vscode.commands.executeCommand('workbench.action.closeAllEditors');
82+
// }
83+
// });
84+
7285
test('document open/close event', async function () {
7386
const resource = vscode.Uri.file(join(vscode.workspace.rootPath || '', './first.vsctestnb'));
7487
const firstDocumentOpen = getEventOncePromise(vscode.notebook.onDidOpenNotebookDocument);

0 commit comments

Comments
 (0)