X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/ee5531417e78b332ff150401a27eec8fe67ef125..b3493517adea9831d8bed8bbd33422d6d8527796:/src/smartxml/smartxml.test.js
diff --git a/src/smartxml/smartxml.test.js b/src/smartxml/smartxml.test.js
index 93c401b..1be4cc1 100644
--- a/src/smartxml/smartxml.test.js
+++ b/src/smartxml/smartxml.test.js
@@ -767,10 +767,7 @@ describe('smartxml', function() {
});
it('keeps parent-describing nodes in place', function() {
- var section = elementNodeFromXML(''),
- aliceText = section.contents()[0],
- x = section.contents()[1],
- lastDiv = section.contents()[2];
+ var section = elementNodeFromXML('');
section.document.registerExtension({documentNode: {methods: {
object: {
@@ -780,6 +777,10 @@ describe('smartxml', function() {
}
}}});
+ var aliceText = section.contents()[0],
+ x = section.contents()[1],
+ lastDiv = section.contents()[2];
+
section.document.wrapNodes({
node1: aliceText,
node2: lastDiv,