From 1c1ff8c8088b1c2ecc9c3b85d5ba1bed818c5b5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Thu, 28 Jan 2016 00:12:18 +0100 Subject: [PATCH] Travis CI: Try to fix failing test on Travis by specifying font. --- test/tests/Item_Bounds.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/tests/Item_Bounds.js b/test/tests/Item_Bounds.js index 8e375544..527babdd 100644 --- a/test/tests/Item_Bounds.js +++ b/test/tests/Item_Bounds.js @@ -92,6 +92,8 @@ test('shape.strokeBounds when scaled with strokeScaling set to false', function( test('text.bounds', function() { var text = new PointText(new Point(50, 100)); + text.fontFamily = 'Helvetica, Arial'; + text.fontSize = 12; text.fillColor = 'black'; text.content = 'This is a test'; equals(text.bounds, new Rectangle(50, 89.2, 67, 14.4), 'text.bounds', { tolerance: 1 });