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