Mercurial > hg > webaudioevaluationtool
diff 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 |
line wrap: on
line diff
--- a/test_create/test_core.js Fri Apr 15 16:11:47 2016 +0100 +++ b/test_create/test_core.js Mon Apr 18 13:47:35 2016 +0100 @@ -1585,6 +1585,27 @@ this.buttonDOM = obj.buttonsDOM; this.HTMLPoint = parent; this.rootDOM.removeChild(this.attributeDOM); + if (parent.id != "setup") { + // Put in the <title> node: + this.titleNode = { + root: document.createElement("div"), + label: document.createElement("span"), + input: document.createElement("input"), + parent: this, + handleEvent: function(event) { + this.parent.specification.title = event.currentTarget.value; + } + } + this.titleNode.label.textContent = "Axis Title:"; + this.titleNode.root.className = "node-children"; + this.titleNode.root.appendChild(this.titleNode.label); + this.titleNode.root.appendChild(this.titleNode.input); + this.titleNode.input.addEventListener("change",this.titleNode,false); + this.titleNode.input.value = this.specification.title; + this.children.push(this.titleNode); + this.childrenDOM.appendChild(this.titleNode.root); + } + // Put in the check / show options as individual children var checks = this.parent.createGeneralNodeDOM("Checks","setup-interface-checks",this);