Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
nvh committed Jan 19, 2018
1 parent ee99adf commit d35606e
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions test/tests/SVGPathTest.coffee
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -29,10 +29,13 @@ describe "SVGPath", ->
point.y.should.be.closeTo 50, 0.01 point.y.should.be.closeTo 50, 0.01


describe "positioning", -> describe "positioning", ->
it "should proxy the x and y property to the SVGLayer if that is it's direct parent", -> it "should proxy the transform property to the SVGLayer if that is it's direct parent", ->
path.x.should.equal 123 path.x.should.equal 0
path.y.should.equal 456 path.y.should.equal 0
path.x = 23 path.x = 23
path.y = 17 path.y = 17
svg.x.should.equal 23 path.x.should.equal 23
svg.y.should.equal 17 path.y.should.equal 17
svg.x.should.equal 123
svg.y.should.equal 456
svg._element.style.webkitTransform.should.equal "translate3d(23px, 17px, 0px) scale3d(1, 1, 1) skew(0deg, 0deg) skewX(0deg) skewY(0deg) translateZ(0px) rotateX(0deg) rotateY(0deg) rotateZ(0deg) translateZ(0px)"

0 comments on commit d35606e

Please sign in to comment.