Skip to content

Commit

Permalink
Cleaning up after tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nvh committed Jan 26, 2018
1 parent 5d18f8a commit e8c41ca
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/tests/AlignTest.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ describe "Align", ->
rect.x.should.equal 414-66
rect.y.should.equal 0

svg.destroy()


describe "left", ->

Expand Down
4 changes: 4 additions & 0 deletions test/tests/LayerAnimationTest.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -1247,6 +1247,9 @@ describe "LayerAnimation", ->
autoSize: true
strokeWidth: 1

afterEach ->
layer.destroy()

it "should animate the fill property", (done) ->
layer.onAnimationEnd ->
layer.fill.should.equalColor "yellow"
Expand Down Expand Up @@ -1297,4 +1300,5 @@ describe "LayerAnimation", ->
a.onAnimationEnd ->
l.x.should.equal 45 + path.x
l.y.should.equal -5 + path.y
svg.destroy()
done()
1 change: 1 addition & 0 deletions test/tests/SVGLayerTest.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ describe "SVGLayer", ->

b = a.copy()
a.htmlIntrinsicSize.should.eql b.htmlIntrinsicSize
a.destroy()

it "should not copy SVGLayer that has children", ->
a = new SVGLayer
Expand Down
3 changes: 3 additions & 0 deletions test/tests/SVGPathTest.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ describe "SVGPath", ->
svg: '<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><path d="M 100 50 C 100 77.614 77.614 100 50 100 C 22.386 100 0 77.614 0 50 C 0 22.386 22.386 0 50 0" id="path" name="path" fill="transparent" stroke="#0AF"></path></svg>'
path = svg.elements.path

afterEach ->
svg.destroy()

describe "pointAtFraction", ->

it "should get the beginning", ->
Expand Down

0 comments on commit e8c41ca

Please sign in to comment.