diff core.js @ 1046:e74327737152

Feature #1283: Project specification node <BrowserEvalProjectDocument> now included in output file.
author Nicholas Jillings <nicholas.jillings@eecs.qmul.ac.uk>
date Thu, 25 Jun 2015 17:03:40 +0100
parents cb060b4e73c4
children 01fcd75067c1
line wrap: on
line diff
--- a/core.js	Thu Jun 25 16:37:51 2015 +0100
+++ b/core.js	Thu Jun 25 17:03:40 2015 +0100
@@ -638,6 +638,7 @@
 function interfaceXMLSave(){
 	// Create the XML string to be exported with results
 	var xmlDoc = document.createElement("BrowserEvaluationResult");
+	xmlDoc.appendChild(specification.projectXML);
 	xmlDoc.appendChild(returnDateNode());
 	for (var i=0; i<testState.stateResults.length; i++)
 	{
@@ -1221,6 +1222,7 @@
 	
 	this.decode = function() {
 		// projectXML - DOM Parsed document
+		this.projectXML = projectXML.childNodes[0];
 		var setupNode = projectXML.getElementsByTagName('setup')[0];
 		this.interfaceType = setupNode.getAttribute('interface');
 		this.projectReturn = setupNode.getAttribute('projectReturn');