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
15da2fe257
commit
64283bb76e
1 changed files with 8 additions and 8 deletions
|
@ -3,17 +3,17 @@ module('Path Style');
|
|||
test('style defaults', function() {
|
||||
var path = new Path();
|
||||
equals(function() {
|
||||
return path.strokeCap == 'butt';
|
||||
}, true);
|
||||
return path.strokeCap;
|
||||
}, 'butt');
|
||||
equals(function() {
|
||||
return path.strokeJoin == 'miter';
|
||||
}, true);
|
||||
return path.strokeJoin;
|
||||
}, 'miter');
|
||||
equals(function() {
|
||||
return path.miterLimit == 10;
|
||||
}, true);
|
||||
return path.miterLimit;
|
||||
}, 10);
|
||||
equals(function() {
|
||||
return path.strokeWidth == 1;
|
||||
}, true);
|
||||
return path.strokeWidth;
|
||||
}, 1);
|
||||
});
|
||||
|
||||
test('currentStyle', function() {
|
||||
|
|
Loading…
Reference in a new issue