Permalink
Browse files

Add test image and test for non-animatable properties

  • Loading branch information...
nvh committed Jul 22, 2016
1 parent 66801fc commit 44b09ae09a0ec6029bbdbd0fb0c79884b5b04d12
Showing with 7 additions and 0 deletions.
  1. BIN test/phantomjs/static/test2.png
  2. +7 −0 test/tests/LayerStatesTest.coffee
Binary file not shown.
@@ -94,6 +94,13 @@ describe "LayerStates", ->
layer.animateTo 'stateA', instant: true
layer.html.should.equal "fff"
it "should switch non animatable properties", ->
layer = new Layer
layer.states.stateA = {x: 100, image:"static/test2.png"}
layer.animateTo 'stateA', instant: true
layer.x.should.equal 100
layer.image.should.equal "static/test2.png"
it "should not convert html to a color value if used in a state", ->
layer = new Layer
layer.states.stateA = {x: 100, html: 'aaa'}

0 comments on commit 44b09ae

Please sign in to comment.