Add failing tests for PathStyle default values.

This commit is contained in:
Jonathan Puckey 2011-05-29 14:42:49 +02:00
parent 556c927448
commit 48701b025e

View file

@ -1,5 +1,21 @@
module('Path Style');
test('style defaults', function() {
var path = new Path();
equals(function() {
return path.strokeCap == 'butt';
}, true);
equals(function() {
return path.strokeJoin == 'miter';
}, true);
equals(function() {
return path.miterLimit == 10;
}, true);
equals(function() {
return path.strokeWidth == 1;
}, true);
});
test('currentStyle', function() {
paper.project.currentStyle.fillColor = 'black';
var path = new Path();