comparison test_create/test_core.js @ 1206:74ce8e3f8dd5

Bug fix #1593, in progress #1596.
author Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk>
date Mon, 22 Feb 2016 15:53:50 +0000
parents 27be75c51b5c
children c3a180d49239
comparison
equal deleted inserted replaced
1205:0e49d874ba97 1206:74ce8e3f8dd5
1029 markerInject.appendChild(markerNode.root); 1029 markerInject.appendChild(markerNode.root);
1030 this.markerNodes.push(markerNode); 1030 this.markerNodes.push(markerNode);
1031 1031
1032 } 1032 }
1033 } 1033 }
1034 this.continue = function()
1035 {
1036 popupObject.hide();
1037 }
1038 } 1034 }
1039 } 1035 }
1040 } 1036 }
1041 1037
1042 function SpecificationToHTML() 1038 function SpecificationToHTML()
1237 } 1233 }
1238 this.injectDOM.appendChild(exportButton); 1234 this.injectDOM.appendChild(exportButton);
1239 1235
1240 // First perform the setupNode; 1236 // First perform the setupNode;
1241 var setupSchema = specification.schema.getAllElementsByName('setup')[0]; 1237 var setupSchema = specification.schema.getAllElementsByName('setup')[0];
1242 this.setupDOM = new this.createGeneralNodeDOM('setup','setup',null); 1238 this.setupDOM = new this.createGeneralNodeDOM('Global Configuration','setup',null);
1243 this.injectDOM.appendChild(this.setupDOM.rootDOM); 1239 this.injectDOM.appendChild(this.setupDOM.rootDOM);
1244 var setupAttributes = setupSchema.getAllElementsByTagName('xs:attribute'); 1240 var setupAttributes = setupSchema.getAllElementsByTagName('xs:attribute');
1245 for (var i=0; i<setupAttributes.length; i++) 1241 for (var i=0; i<setupAttributes.length; i++)
1246 { 1242 {
1247 var attributeName = setupAttributes[i].getAttribute('name'); 1243 var attributeName = setupAttributes[i].getAttribute('name');
1253 // Now we must build the interface Node 1249 // Now we must build the interface Node
1254 this.interfaceDOM = new this.interfaceNode(this,specification.interfaces); 1250 this.interfaceDOM = new this.interfaceNode(this,specification.interfaces);
1255 this.interfaceDOM.build("Interface","setup-interface",this.setupDOM.rootDOM); 1251 this.interfaceDOM.build("Interface","setup-interface",this.setupDOM.rootDOM);
1256 1252
1257 // Now build the Metrics selection node 1253 // Now build the Metrics selection node
1258 var metric = this.createGeneralNodeDOM("metrics","setup-metric",this.setupDOM); 1254 var metric = this.createGeneralNodeDOM("Session Metrics","setup-metric",this.setupDOM);
1259 metric.rootDOM.removeChild(metric.attributeDOM); 1255 metric.rootDOM.removeChild(metric.attributeDOM);
1260 this.setupDOM.children.push(metric); 1256 this.setupDOM.children.push(metric);
1261 this.setupDOM.childrenDOM.appendChild(metric.rootDOM); 1257 this.setupDOM.childrenDOM.appendChild(metric.rootDOM);
1262 var interfaceName = popupStateNodes.state[1].select.value; 1258 var interfaceName = popupStateNodes.state[1].select.value;
1263 var checkText = interfaceSpecs.getElementsByTagName("global")[0].getAllElementsByTagName("metrics")[0]; 1259 var checkText = interfaceSpecs.getElementsByTagName("global")[0].getAllElementsByTagName("metrics")[0];