mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Travis CI: Try to fix failing test on Travis by specifying font.
This commit is contained in:
parent
639bf07a47
commit
1c1ff8c808
1 changed files with 2 additions and 0 deletions
|
@ -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 });
|
||||
|
|
Loading…
Reference in a new issue