MODULES Uize.Test.Widget.mChildBindings
1. Introduction
The Uize.Test.Widget.mChildBindings module provides convenience methods for writing test cases against Uize.Widget subclass modules that mix-in Uize.Widget.mChildBindings.
DEVELOPERS: Ben Ilegbodu, original code contributed by Zazzle Inc.
1.1. Examples
There are no dedicated showcase example pages for the Uize.Test.Widget.mChildBindings module.
SEARCH FOR EXAMPLES
Use the link below to search for example pages on the UIZE Web site that reference the Uize.Test.Widget.mChildBindings module...
SEARCH
1.2. Implementation Info
The Uize.Test.Widget.mChildBindings module defines the Uize.Test.Widget.mChildBindings object under the Uize.Test.Widget namespace.
1.2.1. Features Introduced in This Module
The features listed in this section have been introduced in this module.
STATIC PROPERTIES
Uize.Test.Widget.mChildBindings.moduleName | Uize.Test.Widget.mChildBindings.pathToResources
1.2.2. Features Overridden in This Module
No features have been overridden in this module.
1.2.3. Features Inherited From Other Modules
This module has no inherited features.
1.2.4. Modules Directly Under This Namespace
There are no modules directly under this namespace.
1.2.5. Unit Tests
There is no dedicated unit tests module for the Uize.Test.Widget.mChildBindings module.
2. Static Methods
2.1. Uize.Test.Widget.mChildBindings.childBindingTest
.
SYNTAX
testCLASS = Uize.Test.Widget.mChildBindings.childBindingTest ( paramsOBJ );
2.1.1. paramsOBJ
.
2.1.1.1. propertyName
.
2.1.1.2. cases
.
2.1.1.2.1. child
name of the bound child
2.1.1.2.2. property
child state property name
2.1.1.2.3. direction
binding direction
2.1.1.2.4. expect
array of expectations
2.1.1.2.5. instanceProperties
instance properties for the case
2.1.1.3. instanceProperties
.
2.1.1.4. testProperties
.
EXAMPLE
{
propertyName:'numColors',
cases:[
{
child:'numColors',
property:'value',
direction:'<->',
expect:[
{a:7, b:7}
]
}
]
}
);
NOTES
see the related Uize.Test.Widget.mChildBindings.childBindingsTest static method |
2.2. Uize.Test.Widget.mChildBindings.childBindingsTest
.
SYNTAX
testCLASS = Uize.Test.Widget.mChildBindings.childBindingsTest ( childBindingsTestsARRAYorOBJ );
2.2.1. childBindingsTestsARRAYorOBJ
See Uize.Test.Widget.mChildBindings.childBindingTest static method for the structure for each set of child binding tests.
EXAMPLE
Uize.Test.Widget.mChildBindings.childBindingsTest (
[
{
propertyName:'numColors',
cases:[
]
},
{
propertyName:'maxValidColors',
cases:[
]
},
{
propertyName:'maxColors',
cases:[
]
}
]
);
NOTES
see the related Uize.Test.Widget.mChildBindings.childBindingTest static method |