comparison core.js @ 1412:28136e188d46

Bugs #1454 #1391 buffers are pooled and loaded at the begining. Page Save not interface specific.
author Nicholas Jillings <nickjillings@users.noreply.github.com>
date Mon, 07 Dec 2015 18:42:36 +0000
parents a32295e8a6a0
children 0795031754d7
comparison
equal deleted inserted replaced
1411:a32295e8a6a0 1412:28136e188d46
648 }; 648 };
649 649
650 this.testPageCompleted = function(store, testXML, testId) { 650 this.testPageCompleted = function(store, testXML, testId) {
651 // Function called each time a test page has been completed 651 // Function called each time a test page has been completed
652 // Can be used to over-rule default behaviour 652 // Can be used to over-rule default behaviour
653 653 var metric = document.createElement('metric');
654 if (audioEngineContext.metric.enableTestTimer)
655 {
656 var testTime = document.createElement('metricResult');
657 testTime.id = 'testTime';
658 testTime.textContent = audioEngineContext.timer.testDuration;
659 metric.appendChild(testTime);
660 }
661 testXML.appendChild(metric);
662 var audioObjects = audioEngineContext.audioObjects;
663 for (var i=0; i<audioObjects.length; i++)
664 {
665 var audioElement = audioEngineContext.audioObjects[i].exportXMLDOM();
666 audioElement.setAttribute('presentedId',i);
667 testXML.appendChild(audioElement);
668 }
669 $(interfaceContext.commentQuestions).each(function(index,element){
670 var node = element.exportXMLDOM();
671 testXML.appendChild(node);
672 });
654 pageXMLSave(store, testXML); 673 pageXMLSave(store, testXML);
655 }; 674 };
656 675
657 this.initialiseInnerState = function(node) { 676 this.initialiseInnerState = function(node) {
658 // Parses the received testXML for pre and post test options 677 // Parses the received testXML for pre and post test options