mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-10 14:54:42 +00:00
Update shadow.js
This commit is contained in:
parent
d4bae8230d
commit
63c4187939
1 changed files with 8 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue