From 00c7fb9e5f0a51e841d754cc2707b65db9c2737e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aleksander=20=C5=81ukasz?= Date: Fri, 29 Nov 2013 11:27:19 +0100 Subject: [PATCH 1/1] canvas: Fixing nodeMoved event handling --- src/editor/modules/documentCanvas/canvas/canvas.test.js | 2 ++ 1 file changed, 2 insertions(+) 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], -- 2.20.1