TestCase("Model Migration Tests",{ setUp:function(){ mapXml = ''; }, testModelMigration:function(){ ids=[]; var domDocument = core.Utils.createDocumentFromText(mapXml); var betaSerializer = new mindplot.XMLMindmapSerializer_Beta(); var betaMap = betaSerializer.loadFromDom(domDocument); var serializer = mindplot.XMLMindmapSerializerFactory.getSerializerFromDocument(domDocument); var mindmap = serializer.loadFromDom(domDocument); //Assert that the new model is Pela assertEquals(mindplot.ModelCodeName.PELA, mindmap.getVersion()); //Assert same number of branches var betaBranches = betaMap.getBranches(); var branches = mindmap.getBranches(); assertEquals(betaBranches.length, branches.length); //Assert same nodes recursively //Since Id can change let's assume the order is the same for(var i = 0; i