We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bcbee49 commit 4fb6fdaCopy full SHA for 4fb6fda
test/jasmine/tests/drawing_test.js
@@ -355,11 +355,11 @@ describe('Drawing', function() {
355
afterEach(destroyGraphDiv);
356
357
function assertBBox(actual, expected) {
358
- expect(actual.height).toEqual(expected.height, 'height');
359
- expect(actual.top).toEqual(expected.top, 'top');
360
- expect(actual.bottom).toEqual(expected.bottom, 'bottom');
361
-
362
var TOL = 3;
+ expect(actual.height).toBeWithin(expected.height, TOL, 'height');
+ expect(actual.top).toBeWithin(expected.top, TOL, 'top');
+ expect(actual.bottom).toBeWithin(expected.bottom, TOL, 'bottom');
+
363
expect(actual.width).toBeWithin(expected.width, TOL, 'width');
364
expect(actual.left).toBeWithin(expected.left, TOL, 'left');
365
expect(actual.right).toBeWithin(expected.right, TOL, 'right');
0 commit comments