(bboxBefore, bboxAfter, moveX, moveY)
| 28 | // } |
| 29 | |
| 30 | function checkBBox(bboxBefore, bboxAfter, moveX, moveY) { |
| 31 | // We print out the objects for sanity, because sometimes Jasmine says a |
| 32 | // test passed when it actually did nothing! |
| 33 | // console.log('bboxBefore', svgRectToJSON(bboxBefore)); |
| 34 | // console.log('bboxAfter', svgRectToJSON(bboxAfter)); |
| 35 | // console.log('moveX', moveX); |
| 36 | // console.log('moveY', moveY); |
| 37 | expect(bboxAfter.x).toBeCloseTo(bboxBefore.x + moveX, 2); |
| 38 | expect(bboxAfter.y).toBeCloseTo(bboxBefore.y + moveY, 2); |
| 39 | } |
| 40 | |
| 41 | function testObjectMove(objectColor, moveX, moveY, type) { |
| 42 | var bboxBefore = getSVGElemScreenBBox( |
no outgoing calls
no test coverage detected
searching dependent graphs…