diff test_create/test_core.js @ 525:0f758a5efa95 Dev_main

Minor fixes to test_create to match specification (was building empty interface nodes).
author Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk>
date Thu, 18 Feb 2016 12:11:09 +0000
parents bc46a28153f0
children 2a723261ee3e
line wrap: on
line diff
--- 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);