mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-04 03:45:58 -05:00
Define failing test for wrongly merged group fillColor.
This commit is contained in:
parent
90d4834c01
commit
7bd96716ee
1 changed files with 22 additions and 0 deletions
|
@ -100,6 +100,28 @@ test('getting group styles', function() {
|
||||||
compareColors(group.fillColor, 'black', 'group.fillColor');
|
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() {
|
test('setting group styles', function() {
|
||||||
var group = new Group();
|
var group = new Group();
|
||||||
var path = new Path();
|
var path = new Path();
|
||||||
|
|
Loading…
Reference in a new issue