mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-21 17:19:01 +01:00
Merge branch 'main' into sandy081/policy
This commit is contained in:
@@ -115,13 +115,11 @@ suite('NotebookCell#Document', function () {
|
||||
assert.ok(d1);
|
||||
assert.strictEqual(d1.languageId, c1.document.languageId);
|
||||
assert.strictEqual(d1.version, 1);
|
||||
assert.ok(d1.notebook === notebook.apiNotebook);
|
||||
|
||||
const d2 = extHostDocuments.getDocument(c2.document.uri);
|
||||
assert.ok(d2);
|
||||
assert.strictEqual(d2.languageId, c2.document.languageId);
|
||||
assert.strictEqual(d2.version, 1);
|
||||
assert.ok(d2.notebook === notebook.apiNotebook);
|
||||
});
|
||||
|
||||
test('cell document goes when notebook closes', async function () {
|
||||
@@ -264,12 +262,6 @@ suite('NotebookCell#Document', function () {
|
||||
assert.throws(() => extHostDocuments.getDocument(cell1.document.uri));
|
||||
});
|
||||
|
||||
test('cell document knows notebook', function () {
|
||||
for (let cells of notebook.apiNotebook.getCells()) {
|
||||
assert.strictEqual(cells.document.notebook === notebook.apiNotebook, true);
|
||||
}
|
||||
});
|
||||
|
||||
test('cell#index', function () {
|
||||
|
||||
assert.strictEqual(notebook.apiNotebook.cellCount, 2);
|
||||
|
||||
Reference in New Issue
Block a user