Docs and tests for animation methods.

This commit is contained in:
Tim Schaub
2012-01-02 21:54:08 -07:00
parent 92472ca604
commit bd4278de4a
4 changed files with 100 additions and 7 deletions
+2 -2
View File
@@ -49,12 +49,12 @@
t.plan(2);
var tween = new OpenLayers.Tween();
tween.animationId = OpenLayers.Util.loopAnimation(function() {});
tween.animationId = OpenLayers.Util.startAnimation(function() {});
tween.playing = true;
tween.stop();
t.eq(tween.animationId, null, "tween correctly stopped");
tween.animationId = OpenLayers.Util.loopAnimation(function() {});
tween.animationId = OpenLayers.Util.startAnimation(function() {});
tween.playing = false;
tween.stop();
t.ok(tween.animationId != null, "stop method doesn't do anything if tween isn't running");