Improve style defaults test.

This commit is contained in:
Jürg Lehni 2011-05-29 21:23:16 +01:00
parent 15da2fe257
commit 64283bb76e

View file

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