Class: Specials

'brixy.tester.Specials'~ Specials

new Specials ()

Specials object.

Source:

Methods

addType (Type, valueCallback, captionCallback)

Adds new special type definition.

Parameters:
Name Type Description
Type function

Object's constructor.

valueCallback function

function(val){ return val.something; } returns a value for testing instead of original value.

captionCallback function

function(val){ return val.toString(); } returns a string to show in report dialog.

Throws:
  • Exception

Source:

get (val) → {Object}

Gets a special type definition.

Parameters:
Name Type Description
val Object
Returns:
  • Object :

    Special type definition {constr: Type, value: Function, caption: Function}.

Source:

getValue (val) → {*}

Gets a special type value.

Parameters:
Name Type Description
val Object
Returns:
  • *
Source:

toString () → {string}

Returns a string representation of the object.

Returns:
  • string
Source: