Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

chore(typescript): runner and launcher converted to typescript #3149

Merged
merged 1 commit into from
Apr 21, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions lib/configParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,23 @@ export interface Config {
sauceKey?: string;
sauceSeleniumAddress?: string;
sauceUser?: string;
v8Debug?: any;
nodeDebug?: boolean;
directConnect?: boolean;
mockSelenium?: boolean;
baseUrl?: string;
untrackOutstandingTimeouts?: any;
debuggerServerPort?: number;
useAllAngular2AppRoots?: boolean;
frameworkPath?: string;
restartBrowserBetweenTests?: boolean;
onPrepare?: any;
beforeLaunch?: any;
getMultiCapabilities?: any;
elementExplorer?: any;
afterLaunch?: any;
debug?: boolean;
resultJsonOutputFile?: any;
}

export class ConfigParser {
Expand Down
8 changes: 8 additions & 0 deletions lib/driverProviders/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export * from './attachSession';
export * from './browserStack';
export * from './direct';
export * from './driverProvider';
export * from './hosted';
export * from './local';
export * from './mock';
export * from './sauce';
25 changes: 25 additions & 0 deletions lib/globals.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,27 @@
// Typescript transpiling will give a warning about 'global'. This work around
// is to allow protractor to set global variables. Warning message as follows:
//
// lib/globals.d.ts(2,19): error TS2300: Duplicate identifier 'global'.
// typings/main/ambient/node/index.d.ts(33,13): error TS2300: Duplicate
// identifier 'global'.
declare namespace global {
var browser: any;
var protractor: any;
var $: any;
var $$: any;
var element: any;
var by: any;
var By: any;
var DartObject: any;
}
declare var browser: any;
declare var protractor: any;
declare var $: any;
declare var $$: any;
declare var element: any;
declare var by: any;
declare var By: any;
declare var DartObject: any;

declare namespace webdriver {
class WebDriver {
Expand All @@ -9,9 +32,11 @@ declare namespace webdriver {

class Session {
getId: Function;
getCapabilities: Function;
}

class Promise {
controlFlow: Function;
then: Function;
}

Expand Down
262 changes: 0 additions & 262 deletions lib/launcher.js

This file was deleted.

Loading