# HG changeset patch # User Nicholas Jillings # Date 1455797469 0 # Node ID 0f758a5efa95c04512e16a04a8794601a820b6d7 # Parent d753dfb040bf983b1fafbb4b015cb181749321dc Minor fixes to test_create to match specification (was building empty interface nodes). diff -r d753dfb040bf -r 0f758a5efa95 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 d753dfb040bf -r 0f758a5efa95 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 d753dfb040bf -r 0f758a5efa95 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 d753dfb040bf -r 0f758a5efa95 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];;