Details
-
Bug
-
Resolution: Not A Bug
-
Major
-
None
-
None
-
None
Description
Trying to test boiled events will halt at the test sequence where the listener is bound to the original event location. For example in the test setup below, the test will not continue past the first listener sequence.
fluid.defaults("fluid.tests.boiledEventTree", {
gradeNames: ["fluid.test.testEnvironment", "autoInit"],
components: {
boiledEventComp: {
type: "fluid.eventedComponent",
options: {
events:
,
invokers: {
trigger: {
func: "
}
},
components: {
child: {
type: "fluid.eventedComponent",
options: {
events: { testEvent: null },
listeners: {
"{boiledEventComp}.events.testEvent": {
listener: "{that}
.events.testEvent"
}
}
}
}
}
}
},
boiledEventTester:
}
});
fluid.defaults("fluid.tests.boiledEventTester", {
gradeNames: ["fluid.test.testCaseHolder", "autoInit"],
modules: [ {
name: "Boiled Event test case",
tests: [{
name: "Boiled Event sequence",
expect: 2,
sequence: [{
func: "
}, {
listener: "fluid.tests.checkEvent",
event: "{boiledEventComp}
.events.testEvent"
}, {
listener: "fluid.tests.checkEvent",
event: "
.child.events.testEvent"
}]
}]
}]
});