# HG changeset patch # User Nicholas Jillings # Date 1429724096 -3600 # Node ID 2b3f19c4f607ea11db0e4772c9c4c64e6d09c8ab # Parent 06fbaccf3b5887db9086764bf76e502d21760329 Fixed bug where not defining postTest in audioHolder would crash progression. diff -r 06fbaccf3b58 -r 2b3f19c4f607 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 06fbaccf3b58 -r 2b3f19c4f607 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