]> source.dussan.org Git - svg.js.git/commitdiff
relax test
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>
Mon, 27 Mar 2017 11:29:24 +0000 (13:29 +0200)
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>
Mon, 27 Mar 2017 11:29:24 +0000 (13:29 +0200)
spec/spec/circle.js
spec/spec/group.js
spec/spec/helper.js
spec/spec/image.js
spec/spec/path.js

index 3595ba06fe39498cdac2359ab6443af47427d25a..fc66e0c93f88e3749b3b23722658fb98cac6b95a 100644 (file)
@@ -175,11 +175,3 @@ describe('Circle', function() {
   })
   
 })
-
-
-
-
-
-
-
-
index 63335aeda5523aecbf92be7ad22c9c87b808295c..4d5ff36557f35386c2d2d0d76ab09c73344c43fe 100644 (file)
@@ -113,6 +113,4 @@ describe('Group', function() {
       expect(group.node.getAttribute('transform')).toBe('matrix(1,0,0,1,130,85)')
     })
   })
-
-
 })
index 576b9b670fe0195a5e4f1596ce841e681c4b5bb2..fb0e50d8eba6a92e1f3966c722ca9bad9e5bcf6d 100644 (file)
@@ -2,7 +2,7 @@
 //var drawing, window = window, document = document, SVG = SVG
 
 if(typeof exports === 'object'){
-  window = require('svgdom')
+  window = require('../../../svgdom/dom.js')
   SVG = require('../../dist/svg.js')
   document = window.document
   drawing = document.documentElement
index c7ffd22564bc1bfc4110ae84706b6e4e02d954ce..4b51a9b967d77b5be55a5ca71bbd4c9749794efd 100644 (file)
@@ -224,20 +224,3 @@ describe('Image', function() {
   })
 
 })
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
index cfa416a483920d722a91ecb4ef5a134182b66d00..f5b99ca3b0283fc94ea76e019e96fc4630947dbb 100644 (file)
@@ -155,14 +155,14 @@ describe('Path', function() {
     it('defines the width and height proportionally with only the width value given', function() {
       var box = path.bbox()
       path.size(500)
-      expect(path.width()).toBe(500)
+      expect(path.width()).toBeCloseTo(500)
       expect(path.width() / path.height()).toBe(box.width / box.height)
     })
     it('defines the width and height proportionally with only the height value given', function() {
       var box = path.bbox()
       path.size(null, 525)
       expect(path.height()).toBe(525)
-      expect(path.width() / path.height()).toBe(box.width / box.height)
+      expect(path.width() / path.height()).toBeCloseTo(box.width / box.height)
     })
   })