Permalink
Browse files

Added test for inner an shadowType in constructor

  • Loading branch information...
nvh committed Sep 18, 2017
1 parent a32d208 commit a3b0c61a616345d55580162bc7a50a8392a62636
Showing with 9 additions and 0 deletions.
  1. +9 −0 test/tests/LayerTest.coffee
@@ -957,6 +957,15 @@ describe "Layer", ->
l.shadow1.type.should.equal "inner"
l.style.boxShadow.should.equal "rgba(123, 123, 123, 0.498039) 10px 0px 0px 0px inset"
it "should use inner as an alias for inset shadow in the constructor", ->
l = new Layer
shadowType: "inner"
shadowColor: "red"
shadowY: 10
shadowBlur: 10
l.shadow1.type.should.equal "inner"
l.style.boxShadow.should.equal "rgb(255, 0, 0) 0px 10px 10px 0px inset"
describe "Events", ->
it "should remove all events", ->

0 comments on commit a3b0c61

Please sign in to comment.