mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2024-12-29 09:22:22 -05:00
Fix PointText size test on new Safari...
This commit is contained in:
parent
3fa385ac7c
commit
bfbe0b3147
1 changed files with 2 additions and 2 deletions
|
@ -14,7 +14,7 @@ module('TextItem');
|
|||
|
||||
test('PointText', function() {
|
||||
var text = new PointText({
|
||||
fontFamily: 'Arial',
|
||||
fontFamily: 'Helvetica, Arial',
|
||||
fontSize: 14,
|
||||
point: [100, 100],
|
||||
content: 'Hello World!'
|
||||
|
@ -22,7 +22,7 @@ test('PointText', function() {
|
|||
equals(text.fillColor, new Color(0, 0, 0), 'text.fillColor should be black by default');
|
||||
equals(text.point, new Point(100, 100), 'text.point');
|
||||
equals(text.bounds.point, new Point(100, 87.4), 'text.bounds.point');
|
||||
equals(text.bounds.size, new Size(77, 16.8), 'text.bounds.size', { tolerance: 1.0 });
|
||||
equals(text.bounds.size, new Size(76, 16.8), 'text.bounds.size', { tolerance: 1.0 });
|
||||
equals(function() {
|
||||
return text.hitTest(text.bounds.center) != null;
|
||||
}, true);
|
||||
|
|
Loading…
Reference in a new issue