spec/javascripts/src/display/sprite_spec.js in entityjs-0.3.2 vs spec/javascripts/src/display/sprite_spec.js in entityjs-0.4.0

- old
+ new

@@ -18,9 +18,27 @@ eq(e.frameY, 0) eq(e.frame(), 1) }); + it('should display second row', function(){ + + e.bisect = 2001; + e.sizeY = 80; + e.sizeX = 87; + + e.frame(22); + + eq(e.frameX, 22) + eq(e.frameY, 0) + + //tricky part + e.frame(23); + eq(e.frameX, 0); + eq(e.frameY, 1); + + }) + it('draw', function(){ is(e.draw(re.sys.context)) });