summaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2013-07-01 21:05:39 +0100
committerwout <wout@impinc.co.uk>2013-07-01 21:05:39 +0100
commit84c4a52c439fc85d5046ea1ebad226e458faf20c (patch)
treea2030bb303a751b0293cc5819e376ca03da12e4f /spec
parent4a6da20fd312d5ea1d3f98f1bcb3b0763a66870a (diff)
downloadsvg.js-84c4a52c439fc85d5046ea1ebad226e458faf20c.tar.gz
svg.js-84c4a52c439fc85d5046ea1ebad226e458faf20c.zip
Sets accept multiple elements at once
Diffstat (limited to 'spec')
-rw-r--r--spec/spec/set.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/spec/set.js b/spec/spec/set.js
index 768fcd9..03b8f31 100644
--- a/spec/spec/set.js
+++ b/spec/spec/set.js
@@ -27,6 +27,11 @@ describe('Set', function() {
expect(set.valueOf()).toEqual([e1,e2,e3])
expect(set.members.length).toBe(3)
})
+ it('accepts multiple elements at once', function() {
+ set.add(e1, e2, e3, e4, e5)
+ expect(set.valueOf()).toEqual([e1, e2, e3, e4, e5])
+ expect(set.members.length).toBe(5)
+ })
})
describe('remove()', function() {