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