mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-06 04:42:15 -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() {
|
test('style defaults', function() {
|
||||||
var path = new Path();
|
var path = new Path();
|
||||||
equals(function() {
|
equals(function() {
|
||||||
return path.strokeCap == 'butt';
|
return path.strokeCap;
|
||||||
}, true);
|
}, 'butt');
|
||||||
equals(function() {
|
equals(function() {
|
||||||
return path.strokeJoin == 'miter';
|
return path.strokeJoin;
|
||||||
}, true);
|
}, 'miter');
|
||||||
equals(function() {
|
equals(function() {
|
||||||
return path.miterLimit == 10;
|
return path.miterLimit;
|
||||||
}, true);
|
}, 10);
|
||||||
equals(function() {
|
equals(function() {
|
||||||
return path.strokeWidth == 1;
|
return path.strokeWidth;
|
||||||
}, true);
|
}, 1);
|
||||||
});
|
});
|
||||||
|
|
||||||
test('currentStyle', function() {
|
test('currentStyle', function() {
|
||||||
|
|
Loading…
Reference in a new issue