summaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
Diffstat (limited to 'spec')
-rwxr-xr-xspec/spec/element.js8
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)
})