Permalink
Browse files

add test for copying layer styles

  • Loading branch information...
J.P.P Treub
J.P.P Treub committed Nov 2, 2015
1 parent b1b3b23 commit 3b32854e4ad037af017267afc3f5f4a0c17a83d2
Showing with 5 additions and 0 deletions.
  1. +5 −0 test/tests/LayerTest.coffee
@@ -929,8 +929,13 @@ describe "Layer", ->
copy.width.should.equal 100
copy.height.should.equal 100
it "copied layer should copy styles", ->
layer = new Layer
layer.style.backgroundColor = "yellow"
layer2 = layer.copy()
layer2.style.backgroundColor.should.equal "yellow"

0 comments on commit 3b32854

Please sign in to comment.