Mercurial > hg > webaudioevaluationtool
comparison core.js @ 1047:01fcd75067c1
Small addition to #1238: Filename included.
author | Nicholas Jillings <nicholas.jillings@eecs.qmul.ac.uk> |
---|---|
date | Sun, 28 Jun 2015 09:52:47 +0100 |
parents | e74327737152 |
children | 7a8fcf04aad3 |
comparison
equal
deleted
inserted
replaced
1046:e74327737152 | 1047:01fcd75067c1 |
---|---|
636 | 636 |
637 // Only other global function which must be defined in the interface class. Determines how to create the XML document. | 637 // Only other global function which must be defined in the interface class. Determines how to create the XML document. |
638 function interfaceXMLSave(){ | 638 function interfaceXMLSave(){ |
639 // Create the XML string to be exported with results | 639 // Create the XML string to be exported with results |
640 var xmlDoc = document.createElement("BrowserEvaluationResult"); | 640 var xmlDoc = document.createElement("BrowserEvaluationResult"); |
641 xmlDoc.appendChild(specification.projectXML); | 641 var projectDocument = specification.projectXML; |
642 projectDocument.setAttribute('file-name',url); | |
643 xmlDoc.appendChild(projectDocument); | |
642 xmlDoc.appendChild(returnDateNode()); | 644 xmlDoc.appendChild(returnDateNode()); |
643 for (var i=0; i<testState.stateResults.length; i++) | 645 for (var i=0; i<testState.stateResults.length; i++) |
644 { | 646 { |
645 xmlDoc.appendChild(testState.stateResults[i]); | 647 xmlDoc.appendChild(testState.stateResults[i]); |
646 } | 648 } |