diff options
author | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2015-06-21 18:32:10 +0200 |
---|---|---|
committer | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2015-06-21 18:32:10 +0200 |
commit | 06eda6b6f232f5c22a7dc3d56f7ce72a86f28ec8 (patch) | |
tree | a14a90c1bc65df569d775edae321500f77754d21 /spec | |
parent | ae7052db3c89d33af7ca9b1a8132e99103b73614 (diff) | |
download | svg.js-06eda6b6f232f5c22a7dc3d56f7ce72a86f28ec8.tar.gz svg.js-06eda6b6f232f5c22a7dc3d56f7ce72a86f28ec8.zip |
Removed scale consideration in `move()`
It wasn't compatible to the other move-functions e.g. for the PointArray
Diffstat (limited to 'spec')
-rwxr-xr-x | spec/spec/element.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/spec/element.js b/spec/spec/element.js index 1c722cd..813ec9b 100755 --- a/spec/spec/element.js +++ b/spec/spec/element.js @@ -364,10 +364,10 @@ describe('Element', function() { it('returns the correct rectangular box within a viewbox', function() { var rect = draw.size(200,150).viewbox(0,0,100,75).rect(105,210).move(2,12) var box = rect.rbox() - expect(box.x).toBe(2) - expect(box.y).toBe(12) - expect(box.cx).toBe(54.5) - expect(box.cy).toBe(117) + expect(box.x).toBe(4) + expect(box.y).toBe(24) + expect(box.cx).toBe(56.5) + expect(box.cy).toBe(129) expect(box.width).toBe(105) expect(box.height).toBe(210) }) |