UIZE JavaScript Framework

MODULES Uize.Test.Widget.mDeclarativeChildren

1. Introduction

The Uize.Test.Widget.mDeclarativeChildren module provides convenience methods for writing test cases against Uize.Widget subclass modules that mix-in Uize.Widget.mDeclarativeChildren.

DEVELOPERS: Ben Ilegbodu, original code contributed by Zazzle Inc.

1.1. Examples

There are no dedicated showcase example pages for the Uize.Test.Widget.mDeclarativeChildren module.

SEARCH FOR EXAMPLES

Use the link below to search for example pages on the UIZE Web site that reference the Uize.Test.Widget.mDeclarativeChildren module...

SEARCH

1.2. Implementation Info

The Uize.Test.Widget.mDeclarativeChildren module defines the Uize.Test.Widget.mDeclarativeChildren 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.mDeclarativeChildren.moduleName | Uize.Test.Widget.mDeclarativeChildren.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.mDeclarativeChildren module.

2. Static Methods

2.1. Uize.Test.Widget.mDeclarativeChildren.childTest

.

SYNTAX

testCLASS = Uize.Test.Widget.mDeclarativeChildren.childTest (
  paramsOBJ
);

2.1.1. paramsOBJ

.

2.1.1.1. childName

.

2.1.1.2. cases

.

2.1.1.2.1. widgetClassName

.

2.1.1.2.2. expectedProperties

.

2.1.1.2.3. instanceProperties

.

NOTES

Omitting casesArray signals that the child actually should not be added

2.1.1.3. instanceProperties

.

2.1.1.4. testProperties

.

EXAMPLE

Uize.Test.Widget.mDeclarativeChildren.childTest (
  {
    childName:'color',
    cases:[
      [
        widgetClassName:'Uize.Widget.Button',
        expectedProperties:{clickToSelect:false},
        instanceProperties:{colorButtonShouldClickToSelect:false}
      ],
      [
        widgetClassName:'Uize.Widget.Button',
        expectedProperties:{clickToSelect:true},
        instanceProperties:{colorButtonShouldClickToSelect:true}
      ]
    ]
  }
);

NOTES

see the related Uize.Test.Widget.mDeclarativeChildren.childrenTest static method

2.2. Uize.Test.Widget.mDeclarativeChildren.childrenTest

.

SYNTAX

testCLASS = Uize.Test.Widget.mDeclarativeChildren.childrenTest (
  declarativeChildrenTestsARRAYorOBJ
);

2.2.1. declarativeChildrenTestsARRAYorOBJ

See Uize.Test.Widget.mDeclarativeChildren.childTest static method for the structure for each set of declarative children tests.

EXAMPLE

Uize.Test.Widget.mDeclarativeChildren.childrenTest  (
  [
    {
      childName:'color',
      cases:[
      ]
    },
    {
      childName:'image',
      cases:[
      ]
    },
    {
      childName:'ok'
    }
  ]
);

NOTES

see the related Uize.Test.Widget.mDeclarativeChildren.childTest static method

3. Static Properties

3.1. Uize.Test.Widget.mDeclarativeChildren.moduleName

IMPLEMENTATION INFO

this feature was introduced in this module

3.2. Uize.Test.Widget.mDeclarativeChildren.pathToResources

IMPLEMENTATION INFO

this feature was introduced in this module