mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-08-28 22:08:54 -04:00
parent
eeb26436b0
commit
0eae0b6e4d
3 changed files with 17 additions and 1 deletions
|
@ -256,3 +256,10 @@ test('Path#importJSON()', function() {
|
|||
equals(function() { return layer.firstChild === path; }, true);
|
||||
equals(function() { return path.parent === layer; }, true);
|
||||
});
|
||||
|
||||
test('Item#importJSON() does not override Item#insert()', function() {
|
||||
var path = new Path();
|
||||
equals(typeof path.insert, 'function');
|
||||
path.importJSON(path.exportJSON());
|
||||
equals(typeof path.insert, 'function');
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue