summaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2018-05-24 23:42:01 +0200
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2018-05-24 23:42:01 +0200
commit4d39baa3e4191c70d3eb7c9b67704b29f79a812d (patch)
tree36540bcb48b8e4be66fe8332b0502eb3d1218815 /spec
parentebf2a8bb395b78b5bc513fb1ec17e1222dcb0f1d (diff)
downloadsvg.js-4d39baa3e4191c70d3eb7c9b67704b29f79a812d.tar.gz
svg.js-4d39baa3e4191c70d3eb7c9b67704b29f79a812d.zip
fixed some more errores, make declaritive controllers partially work. added PID controller for testing reasons
Diffstat (limited to 'spec')
-rw-r--r--spec/spec/runner.js20
1 files changed, 19 insertions, 1 deletions
diff --git a/spec/spec/runner.js b/spec/spec/runner.js
index b09cd43..ce64c23 100644
--- a/spec/spec/runner.js
+++ b/spec/spec/runner.js
@@ -85,7 +85,6 @@ describe('SVG.Runner', function () {
})
describe('tag()', function () {
-
it('acts as a getter', function () {
var runner = new SVG.Runner()
@@ -108,6 +107,25 @@ describe('SVG.Runner', function () {
})
})
+ describe('untag()', function () {
+ it('untags with a string given', function () {
+ var runner = new SVG.Runner()
+
+ runner.tag('foo')
+ runner.untag('foo')
+ expect(runner.tags).toEqual(jasmine.objectContaining({}))
+ })
+
+ it('untags multiple tags with an array given', function () {
+ var runner = new SVG.Runner()
+
+ runner.tag(['foo', 'bar', 'baz'])
+ runner.untag(['bar', 'baz'])
+ expect(runner.tags).toEqual(jasmine.objectContaining({foo: true}))
+ })
+ })
+
+
describe('step()', function () {
it('calls initFn once and runFn at every step when alwaysInitialise is false', function() {