mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -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() {
|
test('style defaults', function() {
|
||||||
var path = new Path();
|
var path = new Path();
|
||||||
|
equals(function() {
|
||||||
|
return path.strokeWidth;
|
||||||
|
}, 1);
|
||||||
equals(function() {
|
equals(function() {
|
||||||
return path.strokeCap;
|
return path.strokeCap;
|
||||||
}, 'butt');
|
}, 'butt');
|
||||||
|
@ -12,8 +15,11 @@ test('style defaults', function() {
|
||||||
return path.miterLimit;
|
return path.miterLimit;
|
||||||
}, 10);
|
}, 10);
|
||||||
equals(function() {
|
equals(function() {
|
||||||
return path.strokeWidth;
|
return path.dashOffset;
|
||||||
}, 1);
|
}, 0);
|
||||||
|
equals(function() {
|
||||||
|
return path.dashArray + '';
|
||||||
|
}, [] + '');
|
||||||
});
|
});
|
||||||
|
|
||||||
test('currentStyle', function() {
|
test('currentStyle', function() {
|
||||||
|
|
Loading…
Reference in a new issue