Define failing test for #227

This commit is contained in:
Jürg Lehni 2013-06-12 00:00:42 -07:00
parent b99d54f8c3
commit cb1f9e5b7c

View file

@ -39,6 +39,15 @@ test('Path#contains() (Regular Polygon)', function() {
testPoint(path, new Point(10, 20), false);
});
test('Path#contains() (Round Rectangle)', function() {
var rectangle = new Rectangle({
point: new Point(0, 0),
size: new Size(200, 40)
});
var path = new Path.Rectangle(rectangle, new Size(20, 20));
testPoint(path, new Point(100, 20), true);
});
test('CompoundPath#contains() (Donut)', function() {
var path = new CompoundPath([
new Path.Circle([0, 0], 50),