# HG changeset patch # User Nicholas Jillings # Date 1429724096 -3600 # Node ID fbbb829cb30b84a4072db51701caddf54a1a6364 # Parent 57815e7645421bbcafbf81ede6ce78aab40342ec Fixed bug where not defining postTest in audioHolder would crash progression. diff -r 57815e764542 -r fbbb829cb30b ape.js --- a/ape.js Wed Apr 22 11:00:58 2015 +0100 +++ b/ape.js Wed Apr 22 18:34:56 2015 +0100 @@ -741,7 +741,10 @@ var testId = currentState.substr(8,currentState.length-7); // Check if we have any post tests to perform var postXML = $(testXMLSetups[testId]).find('PostTest')[0]; - if (postXML.children.length > 0) + if (postXML == undefined) { + testEnded(testId); + } + else if (postXML.children.length > 0) { currentState = 'testRunPost-'+testId; showPopup(); @@ -751,7 +754,7 @@ // No post tests, check if we have another test to perform instead - testEnded(testId); + } } console.log(currentState); diff -r 57815e764542 -r fbbb829cb30b example_eval/project.xml --- a/example_eval/project.xml Wed Apr 22 11:00:58 2015 +0100 +++ b/example_eval/project.xml Wed Apr 22 18:34:56 2015 +0100 @@ -44,6 +44,6 @@ Please take a break before the next test How did you find the test - + \ No newline at end of file