test - check for dirty flag too (#107739)

This commit is contained in:
Benjamin Pasero
2020-10-07 07:53:09 +02:00
parent fb8f4072d6
commit 13ccfeb2cd

View File

@@ -993,6 +993,7 @@ suite('vscode API - workspace', () => {
const document = await vscode.workspace.openTextDocument(newFile);
await vscode.window.showTextDocument(document);
assert.equal(document.getText(), 'hello2');
assert.equal(document.isDirty, true);
}
// undo and show the old document
@@ -1009,6 +1010,7 @@ suite('vscode API - workspace', () => {
const document = await vscode.workspace.openTextDocument(newFile);
await vscode.window.showTextDocument(document);
assert.equal(document.getText(), 'hello2');
assert.equal(document.isDirty, true);
}
});