comparison test_create/test_core.js @ 1110:f53b1098795f

Minor fixes to test_create to match specification (was building empty interface nodes).
author Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk>
date Thu, 18 Feb 2016 12:11:09 +0000
parents 282dfb8076f5
children 9ee921c8cdd3
comparison
equal deleted inserted replaced
1109:1796ab711cdc 1110:f53b1098795f
1870 this.rootDOM.appendChild(this.buttonDOM); 1870 this.rootDOM.appendChild(this.buttonDOM);
1871 1871
1872 } 1872 }
1873 1873
1874 // Build the components 1874 // Build the components
1875 if (this.specification.interfaces.length == 0) {
1876 this.specification.interfaces.push(new specification.interfaceNode());
1877 }
1875 for (var interfaceObj of this.specification.interfaces) 1878 for (var interfaceObj of this.specification.interfaces)
1876 { 1879 {
1877 var newInterface = new this.parent.interfaceNode(this.parent,interfaceObj); 1880 var newInterface = new this.parent.interfaceNode(this.parent,interfaceObj);
1878 newInterface.build("Interface",""+this.specification.id+"-interface",this.childrenDOM); 1881 newInterface.build("Interface",""+this.specification.id+"-interface",this.childrenDOM);
1879 this.children.push(newInterface); 1882 this.children.push(newInterface);