I try to write unittests for my animated zooming code  and I get a problem:
I think, the problem is that I want to test asyncronous code, because the
animations of zooming and panning runs by call "window.setInterval(..)".
So, f.e. the call "map.zoomIn()" doesn't work and the unittest runs fail (good
example is test_Map.html; you can run it here  ).
If I turn the animation off by calling "map.zoomIn(false)" the test is ok!
Now, I tried it with: