summaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2017-07-07 14:02:39 +0200
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2017-07-07 14:02:39 +0200
commit932969dca9e1ef1090304d6a77ac8dd92a42730f (patch)
tree83bee949a884d77564e70955766c4030f6f56966 /spec
parentdfae5055f19d17bad054d283890badd4f8c3dd12 (diff)
downloadsvg.js-932969dca9e1ef1090304d6a77ac8dd92a42730f.tar.gz
svg.js-932969dca9e1ef1090304d6a77ac8dd92a42730f.zip
renamed `fill()` method on `SVG.Gradient` and `SVG.Pattern` to `url()` (#708)
Diffstat (limited to 'spec')
-rw-r--r--spec/spec/gradient.js4
-rw-r--r--spec/spec/pattern.js4
2 files changed, 4 insertions, 4 deletions
diff --git a/spec/spec/gradient.js b/spec/spec/gradient.js
index 987d203..cab9142 100644
--- a/spec/spec/gradient.js
+++ b/spec/spec/gradient.js
@@ -27,9 +27,9 @@ describe('Gradient', function() {
expect(gradient.children().length).toBe(0)
})
- describe('fill()', function() {
+ describe('url()', function() {
it('returns the id of the gradient wrapped in url()', function() {
- expect(gradient.fill()).toBe('url(#' + gradient.id() + ')')
+ expect(gradient.url()).toBe('url(#' + gradient.id() + ')')
})
})
diff --git a/spec/spec/pattern.js b/spec/spec/pattern.js
index 3a749c1..41924f5 100644
--- a/spec/spec/pattern.js
+++ b/spec/spec/pattern.js
@@ -23,9 +23,9 @@ describe('Pattern', function() {
expect(pattern.children().length).toBe(0)
})
- describe('fill()', function() {
+ describe('url()', function() {
it('returns the id of the pattern wrapped in url()', function() {
- expect(pattern.fill()).toBe('url(#' + pattern.id() + ')')
+ expect(pattern.url()).toBe('url(#' + pattern.id() + ')')
})
})