How to emulate all the timer set by page's scripts?

pengdw <[email protected]> Fri, 26 Mar 2010 17:27:20 +0800
Newsgroups gmane.comp.mozilla.devel.dom
Message-ID <[email protected]>
I want to emulate all the timer set by nsIDOMDocument's scripts and do
some controls.

timers created by setTimeout() & setInterval() called by javascript in a
html page.

tks.