Skip to content

Commit e43d0f8

Browse files
committed
add tolerance in layout slider push margins test
... to make it pass on etpinard's laptop running Ubuntu 18.04 and Chrome 69.
1 parent f4227e4 commit e43d0f8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/jasmine/tests/sliders_test.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -334,13 +334,13 @@ describe('sliders interactions', function() {
334334
d3.select(gd).selectAll('.slider-group').each(function(d, i) {
335335
var sliderBB = this.getBoundingClientRect();
336336
var gdBB = gd.getBoundingClientRect();
337+
337338
if(i === 0) {
338339
expect(sliderBB.left - gdBB.left)
339-
.toBeWithin(12, 3, 'left: ' + msg);
340-
}
341-
else {
340+
.toBeWithin(12, 5.1, 'left: ' + msg);
341+
} else {
342342
expect(gdBB.bottom - sliderBB.bottom)
343-
.toBeWithin(8, 3, 'bottom: ' + msg);
343+
.toBeWithin(8, 5.1, 'bottom: ' + msg);
344344
}
345345
});
346346
}

0 commit comments

Comments
 (0)