Changeset 95
Affected files
trunk/EventManager.cfc
| 94 | 95 | ||
|---|---|---|---|
84 | <cfargument name="initMethod" required="false" type="string" default="init"/> | 84 | <cfargument name="initMethod" required="false" type="string" default="init"/> |
85 | <cfargument name="cache" required="false" type="boolean" default="true"/> | 85 | <cfargument name="cache" required="false" type="boolean" default="true"/> |
86 | <cfscript> | 86 | <cfscript> |
87 | var local = {}; | 87 | var local = structNew(); |
88 | /* registered events */ | 88 | /* registered events */ |
89 | local.events = getEvents(); | 89 | local.events = getEvents(); |
90 | local.sorter = getSorter(); | 90 | local.sorter = getSorter(); |
... | ... | ||
333 | local.collection.class = local.interceptions[j].xmlAttributes.class; | 333 | local.collection.class = local.interceptions[j].xmlAttributes.class; |
334 | } | 334 | } |
335 | if(arrayLen(local.interceptions[j].xmlChildren) eq 0){ | 335 | if(arrayLen(local.interceptions[j].xmlChildren) eq 0){ |
336 | throw('EventManager.InterceptionEmpty','An intreception must declare at least one action'); | 336 | throw('EventManager.InterceptionEmpty','An interception must declare at least one action'); |
337 | }else{ | 337 | }else{ |
338 | local.interChd = local.interceptions[j].xmlChildren; | 338 | local.interChd = local.interceptions[j].xmlChildren; |
339 | for(t=1; t <= arraylen(local.interChd); t++){ | 339 | for(t=1; t <= arraylen(local.interChd); t++){ |
trunk/test/testSuite.cfm
| 94 | 95 | ||
|---|---|---|---|
1 | <cfparam name="URL.output" default="extjs"> | 1 | <cfparam name="URL.output" default="extjs"> |
2 | <cfscript> | 2 | <cfscript> |
3 | testSuite = createObject("component","mxunit.framework.TestSuite").TestSuite(); | 3 | testSuite = createObject("component","mxunit.framework.TestSuite").TestSuite(); |
4 | testSuite.addAll("EventManager.test.setUpTest"); | 4 | testSuite.addAll("EventManager.test.unitTest"); |
5 | results = testSuite.run(); | 5 | results = testSuite.run(); |
6 | </cfscript> | 6 | </cfscript> |
7 | <cfoutput>#results.getResultsOutput(URL.output)#</cfoutput> | 7 | <cfoutput>#results.getResultsOutput(URL.output)#</cfoutput> |
Download diff