diff options
author | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2017-04-30 22:29:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-30 22:29:10 +0200 |
commit | bd04216e0b13114e985ad144d5ca006c5a6a0087 (patch) | |
tree | 93fdcad68b1bf662c95d520a642cb66ad4f5f53c /spec | |
parent | 0ba5e1f394911c66441ea770e09338e82fb6ef49 (diff) | |
download | svg.js-bd04216e0b13114e985ad144d5ca006c5a6a0087.tar.gz svg.js-bd04216e0b13114e985ad144d5ca006c5a6a0087.zip |
Adds the intended functionality to call animate functions with multiple parameter (#671)
e.g. `el.animate().zoom(level, point)`
Diffstat (limited to 'spec')
-rw-r--r-- | spec/spec/fx.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/spec/fx.js b/spec/spec/fx.js index e17cb95..d6d87f2 100644 --- a/spec/spec/fx.js +++ b/spec/spec/fx.js @@ -2547,7 +2547,7 @@ describe('FX', function() { spyOn(fx, 'add') fx.plot('5 5 30 29 40 19 12 30') - expect(fx.add).toHaveBeenCalledWith('plot', '5 5 30 29 40 19 12 30') + expect(fx.add).toHaveBeenCalledWith('plot', new SVG.PointArray('5 5 30 29 40 19 12 30')) }) it('also accept parameter list', function() { @@ -2556,7 +2556,7 @@ describe('FX', function() { spyOn(fx, 'add') fx.plot(5, 5, 10, 10) - expect(fx.add).toHaveBeenCalledWith('plot', [5, 5, 10, 10]) + expect(fx.add).toHaveBeenCalledWith('plot', new SVG.PointArray([5, 5, 10, 10])) }) }) |