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