From 7bd96716eee00e49699ebea07f7cbd75ded3ee3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Tue, 11 Jun 2013 13:44:00 -0700 Subject: [PATCH] Define failing test for wrongly merged group fillColor. --- test/tests/Style.js | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/test/tests/Style.js b/test/tests/Style.js index e0d830fc..2f2997b0 100644 --- a/test/tests/Style.js +++ b/test/tests/Style.js @@ -100,6 +100,28 @@ test('getting group styles', function() { compareColors(group.fillColor, 'black', 'group.fillColor'); }); +test('getting group styles 2', function() { + var star = new Path.Star({ + center: [100, 100], + points: 6, + radius1: 20, + radius2: 40, + fillColor: 'red' + }); + + var circle = new Path.Circle({ + center: [100, 100], + radius: 25, + strokeColor: 'black' + }); + // Create a group of the two items and clip it: + var group = new Group(circle, star); + + equals(function() { + return group.fillColor; + }, undefined); +}); + test('setting group styles', function() { var group = new Group(); var path = new Path();