From 48701b025ea7af7289949c2265bff2035bee9d71 Mon Sep 17 00:00:00 2001 From: Jonathan Puckey Date: Sun, 29 May 2011 14:42:49 +0200 Subject: [PATCH] Add failing tests for PathStyle default values. --- test/tests/PathStyle.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/test/tests/PathStyle.js b/test/tests/PathStyle.js index 3c3186eb..16b4127c 100644 --- a/test/tests/PathStyle.js +++ b/test/tests/PathStyle.js @@ -1,5 +1,21 @@ module('Path Style'); +test('style defaults', function() { + var path = new Path(); + equals(function() { + return path.strokeCap == 'butt'; + }, true); + equals(function() { + return path.strokeJoin == 'miter'; + }, true); + equals(function() { + return path.miterLimit == 10; + }, true); + equals(function() { + return path.strokeWidth == 1; + }, true); +}); + test('currentStyle', function() { paper.project.currentStyle.fillColor = 'black'; var path = new Path();