MODULES Uize.Test.Widget.mHtmlBindings
1. Introduction
The Uize.Test.Widget.mHtmlBindings module provides convenience methods for writing test cases against Uize.Widget subclass modules that mix-in Uize.Widget.mHtmlBindings.
DEVELOPERS: Ben Ilegbodu, original code contributed by Zazzle Inc.
1.1. Examples
There are no dedicated showcase example pages for the Uize.Test.Widget.mHtmlBindings module.
SEARCH FOR EXAMPLES
Use the link below to search for example pages on the UIZE Web site that reference the Uize.Test.Widget.mHtmlBindings module...
SEARCH
1.2. Implementation Info
The Uize.Test.Widget.mHtmlBindings module defines the Uize.Test.Widget.mHtmlBindings 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.mHtmlBindings.moduleName | Uize.Test.Widget.mHtmlBindings.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.mHtmlBindings module.
2. Static Methods
2.1. Uize.Test.Widget.mHtmlBindings.htmlBindingTest
.
SYNTAX
testCLASS = Uize.Test.Widget.mHtmlBindings.htmlBindingTest ( paramsOBJ );
2.1.1. paramsOBJ
.
2.1.1.1. propertyNameSTR
.
2.1.1.2. nodeNameSTR
.
2.1.1.3. bindingTypeSTR
.
2.1.1.4. casesARRAY
.
2.1.1.4.1. state
.
2.1.1.4.2. title
.
2.1.1.4.3. expectFunc
.
2.1.1.4.4. spy
.
2.1.1.4.5. webSpy
.
2.1.1.4.6. initialize
.
2.1.1.5. nodesARRAYOrOBJ
.
2.1.1.6. instancePropertiesOBJ
.
2.1.1.7. testPropertiesOBJ
.
EXAMPLE
Uize.Test.Widget.mHtmlBindings.childTest (
{
propertyName:'size',
nodeName:'image',
bindingType:'style.width',
cases:[
{
state:{
size:450
}
}
]
}
);
NOTES
see the related Uize.Test.Widget.mHtmlBindings.htmlBindingsTest static method |
2.2. Uize.Test.Widget.mHtmlBindings.htmlBindingsTest
.
SYNTAX
testCLASS = Uize.Test.Widget.mHtmlBindings.htmlBindingsTest ( htmlBindingsTestsARRAYorOBJ );
2.2.1. htmlBindingsTestsARRAYorOBJ
See Uize.Test.Widget.mHtmlBindings.htmlBindingTest static method for the structure for each set of HTML binding tests.
EXAMPLE
Uize.Test.Widget.mHtmlBindings.htmlBindingsTest (
[
{
propertyName:'value',
nodeName:'display',
bindingType:'html'
cases:[
]
},
{
propertyName:'displayName',
nodeName:'displayName'
bindingType:'html',
cases:[
]
},
{
propertyName:'posX',
nodeName:'image',
bindingType:'style.left'
cases:[
]
}
]
);
NOTES
see the related Uize.Test.Widget.mHtmlBindings.htmlBindingTest static method |