com.actimind.actiwate.testing.events
Interface TimeoutAsyncEvent
- All Superinterfaces:
- AsyncEvent
- public interface TimeoutAsyncEvent
- extends AsyncEvent
Async event created by setTimeout() javascript method call.
Time offset for timeout async event is set using the time offset value specified in setTimeout() javascript method call.
Timeout async events can be distinguished using getJSTimerId() and getJSHandler() methods.
|
Method Summary |
java.lang.String |
getJSHandler()
Returns intervals's handler.
|
long |
getJSTimerId()
Returns timeout's timer id returned by setTimeout() javascript method call.
|
getJSTimerId
public long getJSTimerId()
- Returns timeout's timer id returned by setTimeout() javascript method call.
Each call to setTimeout() javascript method on a page will return a different timer id.
- Returns:
- timer id returned by setTimeout() javascript method call.
getJSHandler
public java.lang.String getJSHandler()
- Returns intervals's handler.
- In case when handler function was passed to setTimeout() javascript mathod
(i.e. "
function handler() { ... };setTimeout(handler, 20);"), this method
will return handler name (i.e. "handler")
- In case when handler source was passed to setTimeout() javascript method
(i.e. "
setTimeout('alert(1);', 20);"), this method will return handler
source (i.e. "alert(1);")
- Returns:
- handler name if it is specified in setTimeout() javascript method call or
handler source if it is specified in setTimeout() javascript method call.
Copyright © 2007 Actimind, Inc. All Rights Reserved.