From: Aleksander Ɓukasz Date: Fri, 29 Nov 2013 10:27:19 +0000 (+0100) Subject: canvas: Fixing nodeMoved event handling X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/00c7fb9e5f0a51e841d754cc2707b65db9c2737e?ds=inline canvas: Fixing nodeMoved event handling --- diff --git a/src/editor/modules/documentCanvas/canvas/canvas.test.js b/src/editor/modules/documentCanvas/canvas/canvas.test.js index ceccda3..2ee505d 100644 --- a/src/editor/modules/documentCanvas/canvas/canvas.test.js +++ b/src/editor/modules/documentCanvas/canvas/canvas.test.js @@ -61,6 +61,7 @@ describe('Handling changes to the document', function() { }); describe('Listening to document changes', function() { + it('Handling element node moved', function() { var doc = getDocumentFromXML('
'), a = doc.root.contents()[0], @@ -73,6 +74,7 @@ describe('Listening to document changes', function() { expect(sectionChildren[0].getWlxmlTag()).to.equal('b'); expect(sectionChildren[1].getWlxmlTag()).to.equal('a'); }); + it('Handling text node moved', function() { var doc = getDocumentFromXML('
Alice
'), a = doc.root.contents()[0],