summaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorRémi Tétreault <tetreault.remi@gmail.com>2016-10-17 19:22:18 -0400
committerRémi Tétreault <tetreault.remi@gmail.com>2016-10-17 19:22:18 -0400
commit2ce9170a5e2cb43f1f312196f3b9370709d4145f (patch)
treedeec0b6d26d11faf2ac0c99c8efddba0282e90ab /spec
parent5da860377ecc0a936cf9c974ffe934f773504f96 (diff)
downloadsvg.js-2ce9170a5e2cb43f1f312196f3b9370709d4145f.tar.gz
svg.js-2ce9170a5e2cb43f1f312196f3b9370709d4145f.zip
Change the SVG.FX attribute spd to _speed
This change is to follow the convention already put forward by the _target attribute.
Diffstat (limited to 'spec')
-rw-r--r--spec/spec/fx.js20
1 files changed, 10 insertions, 10 deletions
diff --git a/spec/spec/fx.js b/spec/spec/fx.js
index e71f449..a0c7fd7 100644
--- a/spec/spec/fx.js
+++ b/spec/spec/fx.js
@@ -13,7 +13,7 @@ describe('FX', function() {
expect(fx.lastPos).toBe(0)
expect(fx.paused).toBeFalsy()
expect(fx.active).toBeFalsy()
- expect(fx.spd).toBe(1)
+ expect(fx._speed).toBe(1)
expect(fx.situations).toEqual([])
expect(fx.situation.init).toBeFalsy()
expect(fx.situation.reversed).toBeFalsy()
@@ -150,22 +150,22 @@ describe('FX', function() {
spd = 2
fx.speed(spd)
- expect(fx.spd).toBe(spd)
+ expect(fx._speed).toBe(spd)
expect(fx.situation.finish-fx.situation.start).toBe(dur/spd)
spd = 0.5
fx.speed(spd)
- expect(fx.spd).toBe(spd)
+ expect(fx._speed).toBe(spd)
expect(fx.situation.finish-fx.situation.start).toBe(dur/spd)
spd = 2
fx.at(0.2).speed(spd)
- expect(fx.spd).toBe(spd)
+ expect(fx._speed).toBe(spd)
expect(fx.situation.finish-fx.situation.start).toBe(dur/spd)
spd = 1
fx.speed(spd)
- expect(fx.spd).toBe(spd)
+ expect(fx._speed).toBe(spd)
expect(fx.situation.finish-fx.situation.start).toBe(dur)
})
@@ -179,23 +179,23 @@ describe('FX', function() {
var spd
spd = 2
- fx.speed(spd)
+ fx._speed = spd
expect(fx.speed()).toBe(spd)
spd = 0.5
- fx.speed(spd)
+ fx._speed = spd
expect(fx.speed()).toBe(spd)
spd = 1
- fx.speed(spd)
+ fx._speed = spd
expect(fx.speed()).toBe(spd)
})
it('pause the animation when a speed of 0 is passed', function(){
- var spd = fx.speed()
+ var spd = fx._speed
expect(fx.speed(0)).toBe(fx)
- expect(fx.speed()).toBe(spd)
+ expect(fx._speed).toBe(spd)
expect(fx.paused).toBe(true)
})