diff options
| author | Rowan Goemans <RB.Goemans@student.han.nl> | 2017-12-29 00:15:59 +0100 |
|---|---|---|
| committer | Christoph Schlosser <christophschlosser@users.noreply.github.com> | 2018-02-20 22:02:22 +0100 |
| commit | b446b9e596fc0487b88597d8e818dae61512f309 (patch) | |
| tree | c7ac9e158964dd88d4cc1839f5ed0da8acce3369 /src/test/MockEditor.ts | |
| parent | 5b0912d99732536ae18d3c70730cc6df2ed3af24 (diff) | |
| download | doxdocgen-b446b9e596fc0487b88597d8e818dae61512f309.tar.gz | |
-- Added more unit tests.
-- Added support for alignas.
Diffstat (limited to 'src/test/MockEditor.ts')
| -rw-r--r-- | src/test/MockEditor.ts | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/src/test/MockEditor.ts b/src/test/MockEditor.ts deleted file mode 100644 index 5368fb8..0000000 --- a/src/test/MockEditor.ts +++ /dev/null @@ -1,43 +0,0 @@ -import * as vscode from "vscode"; -import { TextEditor } from "vscode"; -import MockDocument from "./MockDocument"; -import MockSelection from "./MockSelection"; -import MockTextEditorEdit from "./MockTextEditorEdit"; - -export default class MockEditor implements TextEditor { - public document: vscode.TextDocument; - public selection: vscode.Selection; - public selections: vscode.Selection[]; - public options: vscode.TextEditorOptions; - public viewColumn?: vscode.ViewColumn; - public editBuilder: MockTextEditorEdit; - public constructor(s: MockSelection, d: MockDocument) { - this.selection = s; - this.document = d; - this.editBuilder = new MockTextEditorEdit(); - } - - public edit(callback: (editBuilder: vscode.TextEditorEdit) => void, - options?: { undoStopBefore: boolean; undoStopAfter: boolean; }): Thenable<boolean> { - callback(this.editBuilder); - return Promise.resolve(true); - } - public insertSnippet(snippet: vscode.SnippetString, - location?: vscode.Position | vscode.Range | vscode.Position[] | vscode.Range[], - options?: { undoStopBefore: boolean; undoStopAfter: boolean; }): Thenable<boolean> { - throw new Error("Method not implemented."); - } - public setDecorations(decorationType: vscode.TextEditorDecorationType, - rangesOrOptions: vscode.Range[] | vscode.DecorationOptions[]): void { - throw new Error("Method not implemented."); - } - public revealRange(range: vscode.Range, revealType?: vscode.TextEditorRevealType): void { - throw new Error("Method not implemented."); - } - public show(column?: vscode.ViewColumn): void { - throw new Error("Method not implemented."); - } - public hide(): void { - throw new Error("Method not implemented."); - } -} |