# HG changeset patch # User Nicholas Jillings # Date 1455797469 0 # Node ID f53b1098795f954cda5a3f89cea517cc3b353fe5 # Parent 1796ab711cdc1206359a80bfe5bbfd04926215a0 Minor fixes to test_create to match specification (was building empty interface nodes). diff -r 1796ab711cdc -r f53b1098795f core.js --- a/core.js Thu Feb 18 10:55:36 2016 +0000 +++ b/core.js Thu Feb 18 12:11:09 2016 +0000 @@ -2263,7 +2263,7 @@ this.id = null; this.parent = null; this.type = null; - this.marker = false; + this.marker = null; this.enforce = false; this.gain = 1.0; this.schema = specification.schema.getAllElementsByName('audioelement')[0];; diff -r 1796ab711cdc -r f53b1098795f test-schema.xsd --- a/test-schema.xsd Thu Feb 18 10:55:36 2016 +0000 +++ b/test-schema.xsd Thu Feb 18 12:11:09 2016 +0000 @@ -168,7 +168,7 @@ - + diff -r 1796ab711cdc -r f53b1098795f test_create/test_core.js --- a/test_create/test_core.js Thu Feb 18 10:55:36 2016 +0000 +++ b/test_create/test_core.js Thu Feb 18 12:11:09 2016 +0000 @@ -1872,6 +1872,9 @@ } // Build the components + if (this.specification.interfaces.length == 0) { + this.specification.interfaces.push(new specification.interfaceNode()); + } for (var interfaceObj of this.specification.interfaces) { var newInterface = new this.parent.interfaceNode(this.parent,interfaceObj); diff -r 1796ab711cdc -r f53b1098795f test_create/test_create.html --- a/test_create/test_create.html Thu Feb 18 10:55:36 2016 +0000 +++ b/test_create/test_create.html Thu Feb 18 12:11:09 2016 +0000 @@ -572,7 +572,7 @@ this.id = null; this.parent = null; this.type = null; - this.marker = false; + this.marker = null; this.enforce = false; this.gain = 1.0; this.schema = specification.schema.getAllElementsByName('audioelement')[0];;