UIZE JavaScript Framework

MODULES Uize.Test.Widget.mEventBindings

1. Introduction

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

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

1.1. Examples

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

SEARCH FOR EXAMPLES

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

SEARCH

1.2. Implementation Info

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

2. Static Methods

2.1. Uize.Test.Widget.mEventBindings.eventBindingTest

.

SYNTAX

testCLASS = Uize.Test.Widget.mEventBindings.eventBindingTest (
  paramsOBJ
);

2.1.1. paramsOBJ

.

2.1.1.1. widgetName

.

2.1.1.2. nodeName

.

2.1.1.3. eventName

.

2.1.1.4. propertyName

.

2.1.1.5. cases

.

2.1.1.5.1. title

.

2.1.1.5.2. state

.

2.1.1.5.3. expected

.

2.1.1.5.4. expectFunc

.

2.1.1.5.5. spy

.

2.1.1.5.5.1. args

.

2.1.1.5.5.2. notCalled

.

2.1.1.5.6. webSpy

.

2.1.1.5.7. initialize

.

2.1.1.6. nodes

.

2.1.1.7. instanceProperties

.

2.1.1.8. testProperties

.

EXAMPLE

Uize.Test.Widget.mEventBindings.childTest (
  {
    widgetName:'stop',
    eventName:'Click',
    cases:[
      {
        state:{
          isAnimating:true
        },
        expectFunc:function(widget) {
          return this.expect(false, widget.get('isAnimating'))
        }
      }
    ]
  }
);

NOTES

see the related Uize.Test.Widget.mEventBindings.eventBindingsTest static method

2.2. Uize.Test.Widget.mEventBindings.eventBindingsTest

.

SYNTAX

testCLASS = Uize.Test.Widget.mEventBindings.eventBindingsTest (
  eventBindingsTestsARRAYorOBJ
);

2.2.1. eventBindingsTestsARRAYorOBJ

See Uize.Test.Widget.mEventBindings.eventBindingTest static method for the structure for each set of event binding tests.

EXAMPLE

Uize.Test.Widget.mEventBindings.eventBindingsTest  (
  [
    {
      widgetName:'stop',
      eventName:'Click',
      cases:[

      ]
    },
    {
      nodeName:'image',
      eventName:'click',
      cases:[

      ]
    },
    {
      widgetName:'',
      cases:[

      ]
    }
  ]
);

NOTES

see the related Uize.Test.Widget.mEventBindings.eventBindingTest static method

3. Static Properties

3.1. Uize.Test.Widget.mEventBindings.moduleName

IMPLEMENTATION INFO

this feature was introduced in this module

3.2. Uize.Test.Widget.mEventBindings.pathToResources

IMPLEMENTATION INFO

this feature was introduced in this module