Set notebook as trusted after executing a cell. (#9108)

* Also set trusted by default when opening a notebook without any code cells.
This commit is contained in:
Cory Rivera
2020-02-10 17:03:57 -08:00
committed by GitHub
parent 45341d786b
commit 3a8b74a311
4 changed files with 18 additions and 6 deletions

View File

@@ -155,8 +155,9 @@ suite('notebook model', function (): void {
// Then I expect to have 0 code cell as the contents
assert.equal(model.cells.length, 0);
// And Trust should be false by default
assert(!model.trustedMode);
// And Trust should be true by default if there are no cells
assert(model.trustedMode);
});
test('Should use trusted state set in model load', async function (): Promise<void> {