mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Improve style defaults test.
This commit is contained in:
parent
78f43b52b9
commit
74510d88a9
1 changed files with 8 additions and 2 deletions
|
@ -2,6 +2,9 @@ module('Path Style');
|
|||
|
||||
test('style defaults', function() {
|
||||
var path = new Path();
|
||||
equals(function() {
|
||||
return path.strokeWidth;
|
||||
}, 1);
|
||||
equals(function() {
|
||||
return path.strokeCap;
|
||||
}, 'butt');
|
||||
|
@ -12,8 +15,11 @@ test('style defaults', function() {
|
|||
return path.miterLimit;
|
||||
}, 10);
|
||||
equals(function() {
|
||||
return path.strokeWidth;
|
||||
}, 1);
|
||||
return path.dashOffset;
|
||||
}, 0);
|
||||
equals(function() {
|
||||
return path.dashArray + '';
|
||||
}, [] + '');
|
||||
});
|
||||
|
||||
test('currentStyle', function() {
|
||||
|
|
Loading…
Reference in a new issue