Define failing test for Path#contains() and open paths.

This commit is contained in:
Jürg Lehni 2013-06-12 00:28:57 -07:00
parent f45a66d2ee
commit ac1908878e

View file

@ -48,6 +48,13 @@ test('Path#contains() (Round Rectangle)', function() {
testPoint(path, new Point(100, 20), true);
});
test('Path#contains() (Open Circle)', function() {
var path = new Path.Circle([100, 100], 100);
path.closed = false;
path.fillColor = '#ff0000';
testPoint(path, new Point(40, 160), false);
});
test('CompoundPath#contains() (Donut)', function() {
var path = new CompoundPath([
new Path.Circle([0, 0], 50),