This page just tests a variety of event handler ids and outputs the results.
id | expected | result |
---|---|---|
aliases | ||
start | system.start | system.start |
change | system.change | system.change |
complete | system.complete | system.complete |
reset | system.reset | system.reset |
pause | transition.pause | transition.pause |
resume | transition.resume | transition.resume |
cancel | transition.cancel | transition.cancel |
namespaced | ||
system.start | system.start | system.start |
transition.pause | transition.pause | transition.pause |
state.add | system.state.add | system.state.add |
action.remove | system.action.remove | system.action.remove |
states | ||
a | state.a.enter | state.a.enter |
(a b) | state.a.enter state.b.enter | state.a.enter state.b.enter |
a:leave | state.a.leave | state.a.leave |
(a b):leave | state.a.leave state.b.leave | state.a.leave state.b.leave |
:enter | state.*.enter | state.*.enter |
:leave | state.*.leave | state.*.leave |
actions | ||
@next | action.next.start | action.next.start |
@(next back) | action.next.start action.back.start | action.next.start action.back.start |
@next:end | action.next.end | action.next.end |
@(next back):end | action.next.end action.back.end | action.next.end action.back.end |
:start | action.*.start | action.*.start |
:end | action.*.end | action.*.end |
states + actions | ||
a@next | state.a.next | state.a.next |
(a b c)@next | state.a.next state.b.next state.c.next | state.a.next state.b.next state.c.next |
mixes | ||
(a @next change) | state.a.enter action.next.start system.change | state.a.enter action.next.start system.change |
errors | ||
blah | Unrecognised state "blah" in handler "blah" | |
@blah | Unrecognised action "blah" in handler "@blah" | |
system.blah | Unrecognised type "blah" for namespace "system" | |
a.leave | Unrecognised pattern "a.leave" | |
a:hello | Unrecognised pattern "a:hello" | |
state-action | Unrecognised pattern "state-action" | |
state.next:end | Unrecognised pattern "state.next:end" | |
(wont.work nor.will.this) | Unrecognised pattern "wont.work" |