add html preview sample

This commit is contained in:
Johannes Rieken
2016-01-18 18:27:18 +01:00
parent 79e032c169
commit a6aa8ddf80
2 changed files with 21 additions and 4 deletions

View File

@@ -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);
});
});