diff --git a/test/unit/canvas.js b/test/unit/canvas.js index f3320163..fef7cf14 100644 --- a/test/unit/canvas.js +++ b/test/unit/canvas.js @@ -23,12 +23,12 @@ var PATH_DATALESS_JSON = '{"objects":[{"type":"path","left":100,"top":100,"width":200,"height":200,"fill":"rgb(0,0,0)",'+ '"overlayFill":null,"stroke":null,"strokeWidth":1,"strokeDashArray":null,"scaleX":1,"scaleY":1,"angle":0,"flipX":false,'+ - '"flipY":false,"opacity":1,"selectable":true,"hasControls":true,"hasBorders":true,"hasRotatingPoint":false,'+ + '"flipY":false,"opacity":1,"selectable":true,"hasControls":true,"hasBorders":true,"hasRotatingPoint":false,"transparentCorners":true,"perPixelTargetFind":false,'+ '"path":"http://example.com/"}],"background":"rgba(0, 0, 0, 0)"}'; var RECT_JSON = '{"objects":[{"type":"rect","left":0,"top":0,"width":10,"height":10,"fill":"rgb(0,0,0)","overlayFill":null,'+ '"stroke":null,"strokeWidth":1,"strokeDashArray":null,"scaleX":1,"scaleY":1,"angle":0,"flipX":false,"flipY":false,"opacity":1,'+ - '"selectable":true,"hasControls":true,"hasBorders":true,"hasRotatingPoint":false,"rx":0,"ry":0}],'+ + '"selectable":true,"hasControls":true,"hasBorders":true,"hasRotatingPoint":false,"transparentCorners":true,"perPixelTargetFind":false,"rx":0,"ry":0}],'+ '"background":"#ff5555"}'; var canvas = this.canvas = fabric.isLikelyNode ? fabric.createCanvasForNode() : new fabric.Canvas(); diff --git a/test/unit/canvas_static.js b/test/unit/canvas_static.js index 3d42a49e..9a17adc3 100644 --- a/test/unit/canvas_static.js +++ b/test/unit/canvas_static.js @@ -21,12 +21,12 @@ var PATH_DATALESS_JSON = '{"objects":[{"type":"path","left":100,"top":100,"width":200,"height":200,"fill":"rgb(0,0,0)",'+ '"overlayFill":null,"stroke":null,"strokeWidth":1,"strokeDashArray":null,"scaleX":1,"scaleY":1,"angle":0,"flipX":false,'+ - '"flipY":false,"opacity":1,"selectable":true,"hasControls":true,"hasBorders":true,"hasRotatingPoint":false,'+ + '"flipY":false,"opacity":1,"selectable":true,"hasControls":true,"hasBorders":true,"hasRotatingPoint":false,"transparentCorners":true,"perPixelTargetFind":false,'+ '"path":"http://example.com/"}],"background":"rgba(0, 0, 0, 0)"}'; var RECT_JSON = '{"objects":[{"type":"rect","left":0,"top":0,"width":10,"height":10,"fill":"rgb(0,0,0)","overlayFill":null,'+ '"stroke":null,"strokeWidth":1,"strokeDashArray":null,"scaleX":1,"scaleY":1,"angle":0,"flipX":false,"flipY":false,"opacity":1,"selectable":true,'+ - '"hasControls":true,"hasBorders":true,"hasRotatingPoint":false,"rx":0,"ry":0}],'+ + '"hasControls":true,"hasBorders":true,"hasRotatingPoint":false,"transparentCorners":true,"perPixelTargetFind":false,"rx":0,"ry":0}],'+ '"background":"#ff5555"}'; // force creation of static canvas diff --git a/test/unit/circle.js b/test/unit/circle.js index 7cc7f4c9..3ad666b7 100644 --- a/test/unit/circle.js +++ b/test/unit/circle.js @@ -80,6 +80,8 @@ 'hasControls': true, 'hasBorders': true, 'hasRotatingPoint': false, + 'transparentCorners': true, + 'perPixelTargetFind': false, 'radius': 0 }; ok(typeof circle.toObject == 'function'); diff --git a/test/unit/ellipse.js b/test/unit/ellipse.js index 93ecdf8b..ac9b4aba 100644 --- a/test/unit/ellipse.js +++ b/test/unit/ellipse.js @@ -31,7 +31,7 @@ 'overlayFill': null, 'stroke': null, 'strokeWidth': 1, - 'strokeDashArray': null, + 'strokeDashArray': null, 'scaleX': 1, 'scaleY': 1, 'angle': 0, @@ -43,7 +43,9 @@ 'selectable': true, 'hasControls': true, 'hasBorders': true, - 'hasRotatingPoint': false + 'hasRotatingPoint': false, + 'transparentCorners': true, + 'perPixelTargetFind': false }; ok(typeof ellipse.toObject == 'function'); deepEqual(defaultProperties, ellipse.toObject()); diff --git a/test/unit/group.js b/test/unit/group.js index 38adf777..12989e29 100644 --- a/test/unit/group.js +++ b/test/unit/group.js @@ -139,6 +139,8 @@ 'hasControls': true, 'hasBorders': true, 'hasRotatingPoint': false, + 'transparentCorners': true, + 'perPixelTargetFind': false, 'angle': 0, 'flipX': false, 'flipY': false, diff --git a/test/unit/image.js b/test/unit/image.js index 4870dd59..e1bb1a38 100644 --- a/test/unit/image.js +++ b/test/unit/image.js @@ -36,6 +36,8 @@ 'hasControls': true, 'hasBorders': true, 'hasRotatingPoint': false, + 'transparentCorners': true, + 'perPixelTargetFind': false, 'filters': [] }; diff --git a/test/unit/line.js b/test/unit/line.js index 65323d05..3b1cc4a4 100644 --- a/test/unit/line.js +++ b/test/unit/line.js @@ -24,7 +24,9 @@ 'selectable': true, 'hasControls': true, 'hasBorders': true, - 'hasRotatingPoint': false + 'hasRotatingPoint': false, + 'transparentCorners': true, + 'perPixelTargetFind': false }; QUnit.module('fabric.Line'); diff --git a/test/unit/object.js b/test/unit/object.js index 5a664dad..28d0fba8 100644 --- a/test/unit/object.js +++ b/test/unit/object.js @@ -111,11 +111,11 @@ test('toJSON', function() { var emptyObjectJSON = '{"type":"object","left":0,"top":0,"width":0,"height":0,"fill":"rgb(0,0,0)",'+ '"overlayFill":null,"stroke":null,"strokeWidth":1,"strokeDashArray":null,"scaleX":1,"scaleY":1,"angle":0,'+ - '"flipX":false,"flipY":false,"opacity":1,"selectable":true,"hasControls":true,"hasBorders":true,"hasRotatingPoint":false}'; + '"flipX":false,"flipY":false,"opacity":1,"selectable":true,"hasControls":true,"hasBorders":true,"hasRotatingPoint":false,"transparentCorners":true,"perPixelTargetFind":false}'; var augmentedJSON = '{"type":"object","left":0,"top":0,"width":122,"height":0,"fill":"rgb(0,0,0)",'+ '"overlayFill":null,"stroke":null,"strokeWidth":1,"strokeDashArray":null,"scaleX":1.3,"scaleY":1,"angle":0,'+ - '"flipX":false,"flipY":true,"opacity":0.88,"selectable":true,"hasControls":true,"hasBorders":true,"hasRotatingPoint":false}'; + '"flipX":false,"flipY":true,"opacity":0.88,"selectable":true,"hasControls":true,"hasBorders":true,"hasRotatingPoint":false,"transparentCorners":true,"perPixelTargetFind":false}'; var cObj = new fabric.Object(); ok(typeof cObj.toJSON == 'function'); @@ -136,7 +136,7 @@ 'overlayFill': null, 'stroke': null, 'strokeWidth': 1, - 'strokeDashArray': null, + 'strokeDashArray': null, 'scaleX': 1, 'scaleY': 1, 'angle': 0, @@ -146,8 +146,11 @@ 'selectable': true, 'hasControls': true, 'hasBorders': true, - 'hasRotatingPoint': false - } + 'hasRotatingPoint': false, + 'transparentCorners': true, + 'perPixelTargetFind': false + }; + var augmentedObjectRepr = { 'type': "object", 'left': 10, @@ -158,7 +161,7 @@ 'overlayFill': null, 'stroke': null, 'strokeWidth': 1, - 'strokeDashArray': null, + 'strokeDashArray': null, 'scaleX': 1, 'scaleY': 1, 'angle': 0, @@ -168,8 +171,10 @@ 'selectable': false, 'hasControls': true, 'hasBorders': true, - 'hasRotatingPoint': false - } + 'hasRotatingPoint': false, + 'transparentCorners': true, + 'perPixelTargetFind': false + }; var cObj = new fabric.Object(); deepEqual(emptyObjectRepr, cObj.toObject()); diff --git a/test/unit/path.js b/test/unit/path.js index 81beeda4..a0d15c89 100644 --- a/test/unit/path.js +++ b/test/unit/path.js @@ -21,7 +21,9 @@ 'selectable': true, 'hasControls': true, 'hasBorders': true, - 'hasRotatingPoint': false + 'hasRotatingPoint': false, + 'transparentCorners': true, + 'perPixelTargetFind': false }; function getPathElement(path) { diff --git a/test/unit/path_group.js b/test/unit/path_group.js index 8f2e444b..7a00883a 100644 --- a/test/unit/path_group.js +++ b/test/unit/path_group.js @@ -21,6 +21,8 @@ 'hasControls': true, 'hasBorders': true, 'hasRotatingPoint': false, + 'transparentCorners': true, + 'perPixelTargetFind': false, 'paths': getPathObjects() }; diff --git a/test/unit/polygon.js b/test/unit/polygon.js index 03bd7c39..c2d2c052 100644 --- a/test/unit/polygon.js +++ b/test/unit/polygon.js @@ -26,9 +26,11 @@ 'opacity': 1, 'points': getPoints(), 'selectable': true, - 'hasControls': true, - 'hasBorders': true, - 'hasRotatingPoint': false + 'hasControls': true, + 'hasBorders': true, + 'hasRotatingPoint': false, + 'transparentCorners': true, + 'perPixelTargetFind': false }; QUnit.module('fabric.Polygon'); diff --git a/test/unit/polyline.js b/test/unit/polyline.js index 98c97497..1390285a 100644 --- a/test/unit/polyline.js +++ b/test/unit/polyline.js @@ -26,9 +26,11 @@ 'opacity': 1, 'points': getPoints(), 'selectable': true, - 'hasControls': true, - 'hasBorders': true, - 'hasRotatingPoint': false + 'hasControls': true, + 'hasBorders': true, + 'hasRotatingPoint': false, + 'transparentCorners': true, + 'perPixelTargetFind': false }; QUnit.module('fabric.Polyline'); diff --git a/test/unit/rect.js b/test/unit/rect.js index 050eaa96..cf08faac 100644 --- a/test/unit/rect.js +++ b/test/unit/rect.js @@ -21,6 +21,8 @@ 'hasControls': true, 'hasBorders': true, 'hasRotatingPoint': false, + 'transparentCorners': true, + 'perPixelTargetFind': false, 'rx': 0, 'ry': 0 }; diff --git a/test/unit/text.js b/test/unit/text.js index 7e744778..1a138a72 100644 --- a/test/unit/text.js +++ b/test/unit/text.js @@ -27,6 +27,8 @@ 'hasControls': true, 'hasBorders': true, 'hasRotatingPoint': false, + 'transparentCorners': true, + 'perPixelTargetFind': false, 'text': 'x', 'fontSize': 40, 'fontWeight': 100,