paper.js/test/tests/TextItem.js
2013-06-12 16:50:24 -07:00

22 lines
563 B
JavaScript

/*
* Paper.js - The Swiss Army Knife of Vector Graphics Scripting.
* http://paperjs.org/
*
* Copyright (c) 2011 - 2013, Juerg Lehni & Jonathan Puckey
* http://lehni.org/ & http://jonathanpuckey.com/
*
* Distributed under the MIT license. See LICENSE file for details.
*
* All rights reserved.
*/
module('TextItem');
test('PointText', function() {
var text = new PointText({
point: [100, 100],
content: 'Hello World!'
});
equals(text.point, { x: 100, y: 100 });
equals(text.fillColor, 'black', 'text.fillColor should be black by default');
});