Mercurial > hg > webaudioevaluationtool
changeset 1616:057ca7c45055
Bug #1239: Randomisation of page orders flag in <setup> tag correctly applied.
author | Nicholas Jillings <nickjillings@users.noreply.github.com> |
---|---|
date | Sun, 24 May 2015 10:51:41 +0100 |
parents | eefec889c62d |
children | ed5b4a9b266a |
files | ape.js |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ape.js Sun May 24 10:03:36 2015 +0100 +++ b/ape.js Sun May 24 10:51:41 2015 +0100 @@ -43,10 +43,15 @@ // New check if we need to randomise the test order var randomise = xmlSetup[0].attributes['randomiseOrder']; if (randomise != undefined) { - randomise = Boolean(randomise.value); + if (randomise.value === 'true'){ + randomise = true; + } else { + randomise = false; + } } else { randomise = false; } + if (randomise) { testXMLSetups = randomiseOrder(testXMLSetups);