Mercurial > hg > webaudioevaluationtool
changeset 613:19c17f5fa999 multiple-tests-concatenation
Allow display of given labels for AB fragments #1668
author | Giulio Moro <giuliomoro@yahoo.it> |
---|---|
date | Sun, 13 Mar 2016 15:27:57 +0000 |
parents | 80582bdf9d12 |
children | ecca9c11d2f2 |
files | interfaces/AB.js test-schema.xsd |
diffstat | 2 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/interfaces/AB.js Sun Mar 13 14:09:22 2016 +0000 +++ b/interfaces/AB.js Sun Mar 13 15:27:57 2016 +0000 @@ -319,10 +319,14 @@ case "letter": label = String.fromCharCode(97 + index); break; + case "given": + label = element.label; + break; default: label = String.fromCharCode(65 + index); break; } + console.log('here') var node = new this.comparatorBox(audioObject,index,label); audioObject.bindInterface(node); this.comparators.push(node);
--- a/test-schema.xsd Sun Mar 13 14:09:22 2016 +0000 +++ b/test-schema.xsd Sun Mar 13 15:27:57 2016 +0000 @@ -82,6 +82,7 @@ <xs:enumeration value="number"/> <xs:enumeration value="letter"/> <xs:enumeration value="capital"/> + <xs:enumeration value="given"/> </xs:restriction> </xs:simpleType> </xs:attribute> @@ -150,6 +151,7 @@ <xs:attribute ref="id" use="required"/> <xs:attribute name="url" type="xs:anyURI" use="required"/> <xs:attribute name="gain" type="xs:decimal" default="0"/> + <xs:attribute name="label"/> <xs:attribute ref="name"/> <xs:attribute name="type" default="normal"> <xs:simpleType>