aboutsummaryrefslogtreecommitdiffstats
path: root/bench/tests
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2017-07-25 14:19:49 +0200
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2017-07-25 14:19:49 +0200
commitee0b340bfeb2430767d4a2850413f864c42e5405 (patch)
tree7cb4fe28d59643b2054edd6ae5c33ed8d2b33987 /bench/tests
parentd6d389133409b315bc1b74752f58ef2647033bb9 (diff)
downloadsvg.js-ee0b340bfeb2430767d4a2850413f864c42e5405.tar.gz
svg.js-ee0b340bfeb2430767d4a2850413f864c42e5405.zip
add new default constructor (#714)
Diffstat (limited to 'bench/tests')
-rw-r--r--bench/tests/10000-rects.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/bench/tests/10000-rects.js b/bench/tests/10000-rects.js
index aea0c79..98b7ac9 100644
--- a/bench/tests/10000-rects.js
+++ b/bench/tests/10000-rects.js
@@ -65,10 +65,10 @@ SVG.bench.describe('Generate 10000 rects with position and fill', function(bench
SVG.bench.describe('Generate 10000 rects with gradient fill', function(bench) {
bench.test('using SVG.js v2.5.3', function() {
for (var i = 0; i < 10000; i++) {
- var g = bench.draw.gradient('linear', function(stop) {
- stop.at(0, '#000')
- stop.at(0.25, '#f00')
- stop.at(1, '#fff')
+ var g = bench.draw.gradient('linear', function(add) {
+ add.stop(0, '#000')
+ add.stop(0.25, '#f00')
+ add.stop(1, '#fff')
})
bench.draw.rect(100,100).fill(g)