Update shadow.js

This commit is contained in:
Andrea Bogazzi 2015-10-21 11:32:48 +02:00
parent d4bae8230d
commit 63c4187939

View file

@ -135,6 +135,14 @@
equal(JSON.stringify(object), '{"color":"rgb(0,0,0)","blur":0,"offsetX":0,"offsetY":0}');
});
test('clone with affectStroke', function() {
var shadow = new fabric.Shadow({affectStroke: true, blur: 5});
ok(typeof shadow.toObject == 'function');
var object = shadow.toObject(),
shadow2 = new fabric.Shadow(object);
deepEqual(shadow, shadow2);
});
test('toObject without default value', function() {
var shadow = new fabric.Shadow();
shadow.includeDefaultValues = false;