Interface ITest

abstract

Hierarchy

Index

Properties

Methods

Properties

public isReadyTimeout: number

public waitForTimeout: number

Methods

public any(clsConstructor: Function): any

Parameters

  • clsConstructor: Function

Returns

any

public beginAsync(time: number, errback: Function): any

Parameters

  • time: number
  • errback: Function

Returns

any

public chain(steps: IAction[])

Parameters

public chain(step?: IAction[])

Parameters

public compareObjects(obj1: any, obj2: any, strict?: boolean, onlyPrimitives?: boolean, asObjects?: boolean): boolean

Parameters

  • obj1: any
  • obj2: any
  • strict?: boolean optional
  • onlyPrimitives?: boolean optional
  • asObjects?: boolean optional

Returns

boolean

public ddescribe(name: string, code: Function, timeout?: number)

Parameters

  • name: string
  • code: Function
  • timeout?: number optional

public describe(name: string, code: Function, timeout?: number)

Parameters

  • name: string
  • code: Function
  • timeout?: number optional

public diag(desc: string)

Parameters

  • desc: string

public done(delay: number)

Parameters

  • delay: number

public endAsync(frame: any)

Parameters

  • frame: any

public endWait(title: string)

Parameters

  • title: string

public expect(value: any): Expectation

Parameters

  • value: any

Returns

Expectation

public expectGlobals(names?: Array<any>)

Parameters

  • names?: Array<any> optional

public fail(desc: string, annotation: any)

Parameters

  • desc: string
  • annotation: any

public getSubTest(name: string, code: (t: Siesta.ITest) => void, timeout?: number): ITest

Parameters

  • name: string
  • code: (t: Siesta.ITest) => void
  • timeout?: number optional

Returns

ITest

public iit(name: string, code: Function, timeout?: number)

Parameters

  • name: string
  • code: Function
  • timeout?: number optional

public is(got: any, expected: any, desc: string)

Parameters

  • got: any
  • expected: any
  • desc: string

public isApprox(value1: number, value2: number, threshHold: number, desc: string)

Parameters

  • value1: number
  • value2: number
  • threshHold: number
  • desc: string

public isArray(value: any, desc: string)

Parameters

  • value: any
  • desc: string

public isBoolean(value: any, desc: string)

Parameters

  • value: any
  • desc: string

public isCalled(fn: string, host: any, desc: string)

Parameters

  • fn: string
  • host: any
  • desc: string

public isCalled(fn: Function, host: any, desc: string)

Parameters

  • fn: Function
  • host: any
  • desc: string

public isCalledNTimes(fn: string, host: any, n: number, desc: string)

Parameters

  • fn: string
  • host: any
  • n: number
  • desc: string

public isCalledNTimes(fn: Function, host: any, n: number, desc: string)

Parameters

  • fn: Function
  • host: any
  • n: number
  • desc: string

public isCalledOnce(fn: string, host: any, desc: string)

Parameters

  • fn: string
  • host: any
  • desc: string

public isCalledOnce(fn: Function, host: any, desc: string)

Parameters

  • fn: Function
  • host: any
  • desc: string

public isDate(value: any, desc: string)

Parameters

  • value: any
  • desc: string

public isDateEqual(got: Date, expectedDate: Date, description?: string)

Parameters

  • got: Date
  • expectedDate: Date
  • description?: string optional

public isDeeply(obj1: any, obj2: any, desc: string)

Parameters

  • obj1: any
  • obj2: any
  • desc: string

public isDeeplyStrict(obj1: any, obj2: any, desc: string)

Parameters

  • obj1: any
  • obj2: any
  • desc: string

public isFunction(value: any, desc: string)

Parameters

  • value: any
  • desc: string

public isGreater(value1: any, value2: any, desc: string)

Parameters

  • value1: any
  • value2: any
  • desc: string

public isGreaterOrEqual(value1: any, value2: any, desc: string)

Parameters

  • value1: any
  • value2: any
  • desc: string

public isLess(value1: any, value2: any, desc: string)

Parameters

  • value1: any
  • value2: any
  • desc: string

public isLessOrEqual(value1: any, value2: any, desc: string)

Parameters

  • value1: any
  • value2: any
  • desc: string

public isNot(got: any, expected: any, desc: string)

Parameters

  • got: any
  • expected: any
  • desc: string

public isNotStrict(got: any, expected: any, desc: string)

Parameters

  • got: any
  • expected: any
  • desc: string

public isNumber(value: any, desc: string)

Parameters

  • value: any
  • desc: string

public isObject(value: any, desc: string)

Parameters

  • value: any
  • desc: string

public isReady(): any

Returns

any

public isRegExp(value: any, desc: string)

Parameters

  • value: any
  • desc: string

public isStrict(got: any, expected: any, desc: string)

Parameters

  • got: any
  • expected: any
  • desc: string

public isString(value: any, desc: string)

Parameters

  • value: any
  • desc: string

public isaOk(value: any, className: string, desc: string)

Parameters

  • value: any
  • className: string
  • desc: string

public isaOk(value: any, className: Function, desc: string)

Parameters

  • value: any
  • className: Function
  • desc: string

public isntCalled(fn: string, host: any, n: number, desc: string)

Parameters

  • fn: string
  • host: any
  • n: number
  • desc: string

public isntCalled(fn: Function, host: any, n: number, desc: string)

Parameters

  • fn: Function
  • host: any
  • n: number
  • desc: string

public it(name: string, code: Function, timeout?: number)

Parameters

  • name: string
  • code: Function
  • timeout?: number optional

public launchSubTest(subTest: ITest, callback: Function)

Parameters

  • subTest: ITest
  • callback: Function

public like(string: string, regex: string, desc: string)

Parameters

  • string: string
  • regex: string
  • desc: string

public like(string: string, regex: RegExp, desc: string)

Parameters

  • string: string
  • regex: RegExp
  • desc: string

public livesOk(func: Function, desc: string)

Parameters

  • func: Function
  • desc: string

public methodIsCalled(fn: string, className: string, desc: string)

Parameters

  • fn: string
  • className: string
  • desc: string

public methodIsCalled(fn: Function, className: string, desc: string)

Parameters

  • fn: Function
  • className: string
  • desc: string

public methodIsCalled(fn: string, className: Function, desc: string)

Parameters

  • fn: string
  • className: Function
  • desc: string

public methodIsCalled(fn: Function, className: Function, desc: string)

Parameters

  • fn: Function
  • className: Function
  • desc: string

public methodIsCalledNTimes(fn: string, className: string, n: number, desc: string)

Parameters

  • fn: string
  • className: string
  • n: number
  • desc: string

public methodIsCalledNTimes(fn: Function, className: string, n: number, desc: string)

Parameters

  • fn: Function
  • className: string
  • n: number
  • desc: string

public methodIsCalledNTimes(fn: string, className: Function, n: number, desc: string)

Parameters

  • fn: string
  • className: Function
  • n: number
  • desc: string

public methodIsCalledNTimes(fn: Function, className: Function, n: number, desc: string)

Parameters

  • fn: Function
  • className: Function
  • n: number
  • desc: string

public methodIsntCalled(fn: string, className: string, desc: string)

Parameters

  • fn: string
  • className: string
  • desc: string

public methodIsntCalled(fn: Function, className: string, desc: string)

Parameters

  • fn: Function
  • className: string
  • desc: string

public methodIsntCalled(fn: string, className: Function, desc: string)

Parameters

  • fn: string
  • className: Function
  • desc: string

public methodIsntCalled(fn: Function, className: Function, desc: string)

Parameters

  • fn: Function
  • className: Function
  • desc: string

public notOk(value: any, desc: string)

Parameters

  • value: any
  • desc: string

public ok(value: any, desc: string)

Parameters

  • value: any
  • desc: string

public pass(desc: string, annotation: any)

Parameters

  • desc: string
  • annotation: any

public subTest(desc: string, code: (t: Siesta.ITest) => void, callback: Function, timeout?: number)

Parameters

  • desc: string
  • code: (t: Siesta.ITest) => void
  • callback: Function
  • timeout?: number optional

public throwsOk(func: Function, expected: string, desc: string)

Parameters

  • func: Function
  • expected: string
  • desc: string

public throwsOk(func: Function, expected: RegExp, desc: string)

Parameters

  • func: Function
  • expected: RegExp
  • desc: string

public todo(why: string, code: Function)

Parameters

  • why: string
  • code: Function

public typeOf(object: any): string

Parameters

  • object: any

Returns

string

public unlike(string: string, regex: string, desc: string)

Parameters

  • string: string
  • regex: string
  • desc: string

public unlike(string: string, regex: RegExp, desc: string)

Parameters

  • string: string
  • regex: RegExp
  • desc: string

public verifyGlobals(names?: Array<string>)

Parameters

  • names?: Array<string> optional

public wait(title: string, howLong: number)

Parameters

  • title: string
  • howLong: number

public waitFor(wait: number, callback: Function, scope?: any, timeout?: number, interval?: number): IWaitForReturn

Parameters

  • wait: number
  • callback: Function
  • scope?: any optional
  • timeout?: number optional
  • interval?: number optional

Returns

IWaitForReturn

public waitFor(method: Function, callback: Function, scope?: any, timeout?: number, interval?: number): IWaitForReturn

Parameters

  • method: Function
  • callback: Function
  • scope?: any optional
  • timeout?: number optional
  • interval?: number optional

Returns

IWaitForReturn

public waitFor(config: IWaitForConfig): IWaitForReturn

Parameters

Returns

IWaitForReturn

public xdescribe(name: string, code: Function, timeout?: number)

Parameters

  • name: string
  • code: Function
  • timeout?: number optional

public xit(name: string, code: Function, timeout?: number)

Parameters

  • name: string
  • code: Function
  • timeout?: number optional