mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-23 18:19:12 +01:00
add html preview sample
This commit is contained in:
@@ -26,9 +26,10 @@ suite('workspace-namespace', () => {
|
||||
});
|
||||
|
||||
test('openTextDocument', () => {
|
||||
let len = workspace.textDocuments.length
|
||||
return workspace.openTextDocument(join(workspace.rootPath, './far.js')).then(doc => {
|
||||
assert.ok(doc);
|
||||
assert.equal(workspace.textDocuments.length, 1);
|
||||
assert.equal(workspace.textDocuments.length, len + 1);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user