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