mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-21 00:59:03 +01:00
test - check for dirty flag too (#107739)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user