Tweaked the most recent tests.

This commit is contained in:
Scott Erickson 2014-09-15 15:09:27 -07:00
parent 9ba11e2354
commit 9343d1e645

View file

@ -10,7 +10,7 @@ describe 'WebGLSprite', ->
webGLSprite = null webGLSprite = null
showMe = -> showMe = ->
canvas = $('<canvas width="600" height="400"></canvas>').css('position', 'absolute').css('index', 1000)#.css('background', 'white') canvas = $('<canvas width="600" height="400"></canvas>').css('position', 'absolute').css('index', 1000).css('background', 'white')
$('body').append(canvas) $('body').append(canvas)
stage = new createjs.SpriteStage(canvas[0]) stage = new createjs.SpriteStage(canvas[0])
stage.addChild(webGLSprite) stage.addChild(webGLSprite)
@ -102,4 +102,4 @@ describe 'WebGLSprite', ->
expect(webGLSprite.baseMovieClip.currentFrame).toBe(expectedFrame) expect(webGLSprite.baseMovieClip.currentFrame).toBe(expectedFrame)
for child in webGLSprite.childSpriteContainers for child in webGLSprite.childSpriteContainers
expect(child.movieClip.currentFrame).toBe(expectedFrame) expect(child.movieClip.currentFrame).toBe(expectedFrame)
showMe()