Mercurial > hg > webaudioevaluationtool
comparison test_create/test_core.js @ 2243:0de305726129
Fixed test create not exposing interface node title element.
author | Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk> |
---|---|
date | Mon, 18 Apr 2016 13:47:35 +0100 |
parents | 760719986df3 |
children | 152eada7bd03 |
comparison
equal
deleted
inserted
replaced
2242:86fd1dbae138 | 2243:0de305726129 |
---|---|
1583 this.attributeDOM = obj.attributeDOM; | 1583 this.attributeDOM = obj.attributeDOM; |
1584 this.childrenDOM = obj.childrenDOM; | 1584 this.childrenDOM = obj.childrenDOM; |
1585 this.buttonDOM = obj.buttonsDOM; | 1585 this.buttonDOM = obj.buttonsDOM; |
1586 this.HTMLPoint = parent; | 1586 this.HTMLPoint = parent; |
1587 this.rootDOM.removeChild(this.attributeDOM); | 1587 this.rootDOM.removeChild(this.attributeDOM); |
1588 if (parent.id != "setup") { | |
1589 // Put in the <title> node: | |
1590 this.titleNode = { | |
1591 root: document.createElement("div"), | |
1592 label: document.createElement("span"), | |
1593 input: document.createElement("input"), | |
1594 parent: this, | |
1595 handleEvent: function(event) { | |
1596 this.parent.specification.title = event.currentTarget.value; | |
1597 } | |
1598 } | |
1599 this.titleNode.label.textContent = "Axis Title:"; | |
1600 this.titleNode.root.className = "node-children"; | |
1601 this.titleNode.root.appendChild(this.titleNode.label); | |
1602 this.titleNode.root.appendChild(this.titleNode.input); | |
1603 this.titleNode.input.addEventListener("change",this.titleNode,false); | |
1604 this.titleNode.input.value = this.specification.title; | |
1605 this.children.push(this.titleNode); | |
1606 this.childrenDOM.appendChild(this.titleNode.root); | |
1607 } | |
1608 | |
1588 // Put in the check / show options as individual children | 1609 // Put in the check / show options as individual children |
1589 var checks = this.parent.createGeneralNodeDOM("Checks","setup-interface-checks",this); | 1610 var checks = this.parent.createGeneralNodeDOM("Checks","setup-interface-checks",this); |
1590 | 1611 |
1591 var interfaceName = popupStateNodes.state[1].select.value; | 1612 var interfaceName = popupStateNodes.state[1].select.value; |
1592 var checkText = interfaceSpecs.getElementsByTagName("global")[0].getAllElementsByTagName("checks")[0]; | 1613 var checkText = interfaceSpecs.getElementsByTagName("global")[0].getAllElementsByTagName("checks")[0]; |