tests for KernelsDropdown class (#11476)

* add return type for a function

* tests for KernelsDropdown class

* remove inadvertent change

* remove inadvertent change

* formatting changes

* pr feedback

* pr feedback
This commit is contained in:
Arvind Ranasaria
2020-07-22 17:49:01 -07:00
committed by GitHub
parent b53d1cee4a
commit 9b4931bb0e
4 changed files with 328 additions and 20 deletions

View File

@@ -16,6 +16,7 @@ import { RenderMimeRegistry } from 'sql/workbench/services/notebook/browser/outp
import { ConnectionProfile } from 'sql/platform/connection/common/connectionProfile';
import { URI } from 'vs/base/common/uri';
import { QueryTextEditor } from 'sql/workbench/browser/modelComponents/queryTextEditor';
import { IContextViewProvider, IDelegate } from 'vs/base/browser/ui/contextview/contextview';
export class NotebookModelStub implements INotebookModel {
constructor(private _languageInfo?: nb.ILanguageInfo) {
@@ -693,3 +694,20 @@ export class CellEditorProviderStub implements ICellEditorProvider {
throw new Error('Method not implemented.');
}
}
export interface IContextViewEmitterArgs {
delegate: IDelegate,
container?: HTMLElement
}
export class ContextViewProviderStub implements IContextViewProvider {
showContextView(delegate: IDelegate, container?: HTMLElement): void {
throw new Error('Method not implemented.');
}
hideContextView(): void {
throw new Error('Method not implemented.');
}
layout(): void {
throw new Error('Method not implemented.');
}
}