diff options
author | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2016-04-03 13:11:41 +0200 |
---|---|---|
committer | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2016-04-03 13:11:41 +0200 |
commit | 8bdc17f571d428a62afaf5853679378047b5aafd (patch) | |
tree | 01a5d8b2b8cc8c1d286640d2fea6ca20ab898d7d /spec | |
parent | 528637eb862877ca60cfa311eb54c6384566f831 (diff) | |
download | svg.js-8bdc17f571d428a62afaf5853679378047b5aafd.tar.gz svg.js-8bdc17f571d428a62afaf5853679378047b5aafd.zip |
fixed `SVG.morph()` (#473)
Diffstat (limited to 'spec')
-rw-r--r-- | spec/spec/fx.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/spec/spec/fx.js b/spec/spec/fx.js index d3c2457..5427089 100644 --- a/spec/spec/fx.js +++ b/spec/spec/fx.js @@ -29,7 +29,7 @@ describe('FX', function() { it('returns the current fx object with no argument given', function(){ expect(fx.target()).toBe(rect) }) - + it('changes the target of the animation when parameter given', function(){ var c = draw.circle(5) expect(fx.target(c).target()).toBe(c) @@ -184,11 +184,12 @@ describe('FX', function() { fx.start().during(function(pos, morph, eased, situation){ expect(fx.situation).toBe(situation) + expect(morph(0, 100)).toBeCloseTo(pos*100) if(fx.pos > 0.9){ rect.off('.fx') fx.stop() - + done() } }) @@ -200,7 +201,7 @@ describe('FX', function() { fx.finish() rect.off('.fx') - + fx.animate(500).start().animate(500) var sit = null |