diff options
Diffstat (limited to 'src/vs/platform/driver/common/driver.ts')
-rw-r--r-- | src/vs/platform/driver/common/driver.ts | 41 |
1 files changed, 1 insertions, 40 deletions
diff --git a/src/vs/platform/driver/common/driver.ts b/src/vs/platform/driver/common/driver.ts index 6d23ce9748c..1c593be20d1 100644 --- a/src/vs/platform/driver/common/driver.ts +++ b/src/vs/platform/driver/common/driver.ts @@ -3,8 +3,6 @@ * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ -import { createDecorator } from 'vs/platform/instantiation/common/instantiation'; - // !! Do not remove the following START and END markers, they are parsed by the smoketest build //*START @@ -19,14 +17,7 @@ export interface IElement { } export interface ILocaleInfo { - /** - * The UI language used. - */ language: string; - - /** - * The requested locale - */ locale?: string; } @@ -36,29 +27,6 @@ export interface ILocalizedStrings { find: string; } -export interface IDriver { - readonly _serviceBrand: undefined; - - getWindowIds(): Promise<number[]>; - capturePage(windowId: number): Promise<string>; - startTracing(windowId: number, name: string): Promise<void>; - stopTracing(windowId: number, name: string, persist: boolean): Promise<void>; - reloadWindow(windowId: number): Promise<void>; - exitApplication(): Promise<number /* main PID */>; - dispatchKeybinding(windowId: number, keybinding: string): Promise<void>; - click(windowId: number, selector: string, xoffset?: number | undefined, yoffset?: number | undefined): Promise<void>; - setValue(windowId: number, selector: string, text: string): Promise<void>; - getTitle(windowId: number): Promise<string>; - isActiveElement(windowId: number, selector: string): Promise<boolean>; - getElements(windowId: number, selector: string, recursive?: boolean): Promise<IElement[]>; - getElementXY(windowId: number, selector: string, xoffset?: number, yoffset?: number): Promise<{ x: number; y: number }>; - typeInEditor(windowId: number, selector: string, text: string): Promise<void>; - getTerminalBuffer(windowId: number, selector: string): Promise<string[]>; - writeInTerminal(windowId: number, selector: string, text: string): Promise<void>; - getLocaleInfo(windowId: number): Promise<ILocaleInfo>; - getLocalizedStrings(windowId: number): Promise<ILocalizedStrings>; -} - export interface IWindowDriver { click(selector: string, xoffset?: number | undefined, yoffset?: number | undefined): Promise<void>; setValue(selector: string, text: string): Promise<void>; @@ -71,13 +39,6 @@ export interface IWindowDriver { writeInTerminal(selector: string, text: string): Promise<void>; getLocaleInfo(): Promise<ILocaleInfo>; getLocalizedStrings(): Promise<ILocalizedStrings>; + exitApplication(): Promise<void>; } //*END - -export const ID = 'driverService'; -export const IDriver = createDecorator<IDriver>(ID); - -export interface IWindowDriverRegistry { - registerWindowDriver(windowId: number): Promise<void>; - reloadWindowDriver(windowId: number): Promise<void>; -} |