mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-08-28 22:08:54 -04:00
Replace tabs with 4 white-spaces.
This commit is contained in:
parent
687199e95d
commit
48cb05a181
230 changed files with 35818 additions and 35816 deletions
|
@ -13,16 +13,16 @@
|
|||
module('TextItem');
|
||||
|
||||
test('PointText', function() {
|
||||
var text = new PointText({
|
||||
fontFamily: 'Arial',
|
||||
fontSize: 14,
|
||||
point: [100, 100],
|
||||
content: 'Hello World!'
|
||||
});
|
||||
compareColors(text.fillColor, new Color(0, 0, 0), 'text.fillColor should be black by default');
|
||||
comparePoints(text.point, { x: 100, y: 100 });
|
||||
compareRectangles(text.bounds, { x: 100, y: 87.4, width: 77, height: 16.8 });
|
||||
equals(function() {
|
||||
return text.hitTest(text.bounds.center) != null;
|
||||
}, true);
|
||||
var text = new PointText({
|
||||
fontFamily: 'Arial',
|
||||
fontSize: 14,
|
||||
point: [100, 100],
|
||||
content: 'Hello World!'
|
||||
});
|
||||
compareColors(text.fillColor, new Color(0, 0, 0), 'text.fillColor should be black by default');
|
||||
comparePoints(text.point, { x: 100, y: 100 });
|
||||
compareRectangles(text.bounds, { x: 100, y: 87.4, width: 77, height: 16.8 });
|
||||
equals(function() {
|
||||
return text.hitTest(text.bounds.center) != null;
|
||||
}, true);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue