FLUID-5494: Minor improvements to framework debugging support

Metadata

Source
FLUID-5494
Type
Improvement
Priority
Major
Status
Closed
Resolution
Fixed
Assignee
Antranig Basman
Reporter
Antranig Basman
Created
2014-08-17T12:33:15.889-0400
Updated
2015-06-26T09:55:58.674-0400
Versions
  1. 1.5
Fixed Versions
  1. 1.9
Component
  1. Framework
  2. Testing Infrastructure

Description

Issues discovered when upgrading GPII and Kettle testing infrastructure:

FluidIoC.js line 1311 bindDeferredComponent

var event = eventName.charAt(0) === "{" ? fluid.expandOptions(eventName, that) : that.events[eventName];
event.addListener(function () {

"blind failure" is possible here if event expands to null.

IoCtestUtils.s line 191 decodeListener

var maker = testCaseState.expandFunction(fixture.listenerMaker);
var args = testCaseState.expand(fixture.makerArgs);
listener = maker.apply(null, args);

"blind faliure" is possible here if maker expands to null

Comments