UIZE JavaScript Framework

MODULES Uize.Test.Widget.mCssBindings

1. Introduction

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

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

1.1. Examples

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

SEARCH FOR EXAMPLES

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

SEARCH

1.2. Implementation Info

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

2. Static Methods

2.1. Uize.Test.Widget.mCssBindings.cssBindingTest

.

SYNTAX

testCLASS = Uize.Test.Widget.mCssBindings.cssBindingTest (
  paramsOBJ
);

2.1.1. paramsOBJ

.

2.1.1.1. propertyNameSTR

.

2.1.1.2. casesARRAY

.

2.1.1.2.1. state

.

2.1.1.2.2. expected

.

2.1.1.2.3. title

.

2.1.1.3. instancePropertiesOBJ

.

2.1.1.4. testPropertiesOBJ

.

EXAMPLE

Uize.Test.Widget.mCssBindings.childTest (
  {
    propertyName:'showDisplayInfo',
    cases:[
      {
        state:{
          showDisplayInfo:false
        },
        expected:'hideDisplayInfo'
      },
      {
        state:{
          showDisplayInfo:true
        },
        expected:''
      }
    ]
  }
);

NOTES

see the related Uize.Test.Widget.mCssBindings.cssBindingsTest static method

2.2. Uize.Test.Widget.mCssBindings.cssBindingsTest

.

SYNTAX

testCLASS = Uize.Test.Widget.mCssBindings.cssBindingsTest (
  cssBindingsTestsARRAYorOBJ
);

2.2.1. cssBindingsTestsARRAYorOBJ

See Uize.Test.Widget.mCssBindings.cssBindingTest static method for the structure for each set of CSS binding tests.

EXAMPLE

Uize.Test.Widget.mCssBindings.cssBindingsTest  (
  [
    {
      propertyName:'value',
      cases:[

      ]
    },
    {
      propertyName:'displayName',
      cases:[

      ]
    },
    {
      propertyName:'posX',
      cases:[

      ]
    }
  ]
);

NOTES

see the related Uize.Test.Widget.mCssBindings.cssBindingTest static method

3. Static Properties

3.1. Uize.Test.Widget.mCssBindings.moduleName

IMPLEMENTATION INFO

this feature was introduced in this module

3.2. Uize.Test.Widget.mCssBindings.pathToResources

IMPLEMENTATION INFO

this feature was introduced in this module