Improve style defaults test.

This commit is contained in:
Jürg Lehni 2011-05-29 21:35:57 +01:00
parent 78f43b52b9
commit 74510d88a9

View file

@ -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() {