From 64283bb76e3e057452d7f6aa7e63a34d84ee96a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Sun, 29 May 2011 21:23:16 +0100 Subject: [PATCH] Improve style defaults test. --- test/tests/PathStyle.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/test/tests/PathStyle.js b/test/tests/PathStyle.js index 16b4127c..dc180cae 100644 --- a/test/tests/PathStyle.js +++ b/test/tests/PathStyle.js @@ -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() {