animationRunCounter ++;
}
});
// We do the assertions after all effects have been run
g.queue(new Function() {
public void f() {
// after running queue method it is mandatory to call dequeue,
// otherwise the queue get stuck
$(this).dequeue();
// Check that all animations and the delayed function has been run