got the unit tests and functional tests passing. Have a few things left to do, and a bit more testing before I merge the transitions rewrite back into the trunk

This commit is contained in:
Eric Rowell
2012-04-02 23:38:14 -07:00
parent d5834c8351
commit fc5825e61e
7 changed files with 23 additions and 54 deletions

View File

@@ -10,7 +10,7 @@ function log(message) {
* Test constructor
*/
function Test() {
this.testOnly = 'TRANSITION - transition position and rotation';
this.testOnly = '';
this.counter = 0;
}
/**

View File

@@ -1809,17 +1809,11 @@ Test.prototype.tests = {
rect.x = amplitude * Math.sin(frame.time * 2 * Math.PI / period) + centerX;
layer.draw();
});
test(stage.isAnimating === false, 'stage should not be animating');
test(Kinetic.GlobalObject._isaCanvasAnimating() === false, 'global object should not be animating');
// TODO: need to re-add support for stop
stage.start();
test(stage.isAnimating === true, 'stage should be animating');
test(Kinetic.GlobalObject._isaCanvasAnimating() === true, 'global object should be animating');
stage.stop();
test(stage.isAnimating === false, 'stage should not be animating');
test(Kinetic.GlobalObject._isaCanvasAnimating() === false, 'global object should not be animating');
}
};