mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Add failing tests for PathStyle default values.
This commit is contained in:
parent
556c927448
commit
48701b025e
1 changed files with 16 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue