X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/1b8f7d0e5974d649dff89f50f2a26783a29af5d7..969f365b3ee6d3cb54f98b23e1ebb97df9f801dd:/modules/documentCanvas/tests/canvas.test.js diff --git a/modules/documentCanvas/tests/canvas.test.js b/modules/documentCanvas/tests/canvas.test.js index 12fb8a5..ac3e69a 100644 --- a/modules/documentCanvas/tests/canvas.test.js +++ b/modules/documentCanvas/tests/canvas.test.js @@ -57,7 +57,7 @@ define([ var c = canvas.create('
Header 1
'); var header = c.findNodes({tag: 'header'})[0]; var wrapper = canvasNode.create({tag: 'aside'}); - c.nodeWrap({inside: header, _with: wrapper, offsetStart: 1, offsetEnd: 6}) + c.nodeWrap({inside: header, _with: wrapper, offsetStart: 1, offsetEnd: 6}); assertDomEqual(c.getContent(), '
Header 1
'); }); @@ -73,7 +73,7 @@ define([ var c = canvas.create('
Alice has a small cat
'); var header = c.findNodes({tag: 'header'})[0]; var wrapper = canvasNode.create({tag: 'aside'}); - c.nodeWrap({inside: header, _with: wrapper, offsetStart: 6, offsetEnd: 4, textNodeIdx: [0,2]}) + c.nodeWrap({inside: header, _with: wrapper, offsetStart: 6, offsetEnd: 4, textNodeIdx: [0,2]}); assertDomEqual(c.getContent(), '
Alice has a small cat
'); });