FuncUnit.prototype.trigger  function     

Triggers an event on a set of elements in the page. Use it to trigger custom user events that a user can't easily simulate. Do NOT use it to simulate 'click' and 'keypress' events, that is what .click() and .type() are for. This only works if the page you are testing has jQuery in it.

S('#foo').trigger("myCustomEvent")
func_unit.trigger(eventType)
{String}

A string containing a JavaScript event type, such as click or submit.

© Jupiter IT - JavaScriptMVC Training and Support