Mercurial > hg > webaudioevaluationtool
comparison ape.js @ 946:e50a0ea30326
Bug #1239: Randomisation of page orders flag in <setup> tag correctly applied.
author | Nicholas Jillings <nicholas.jillings@eecs.qmul.ac.uk> |
---|---|
date | Sun, 24 May 2015 10:51:41 +0100 |
parents | 17561e292409 |
children | c26cfa1c5fc0 |
comparison
equal
deleted
inserted
replaced
945:17561e292409 | 946:e50a0ea30326 |
---|---|
41 }); | 41 }); |
42 | 42 |
43 // New check if we need to randomise the test order | 43 // New check if we need to randomise the test order |
44 var randomise = xmlSetup[0].attributes['randomiseOrder']; | 44 var randomise = xmlSetup[0].attributes['randomiseOrder']; |
45 if (randomise != undefined) { | 45 if (randomise != undefined) { |
46 randomise = Boolean(randomise.value); | 46 if (randomise.value === 'true'){ |
47 randomise = true; | |
48 } else { | |
49 randomise = false; | |
50 } | |
47 } else { | 51 } else { |
48 randomise = false; | 52 randomise = false; |
49 } | 53 } |
54 | |
50 if (randomise) | 55 if (randomise) |
51 { | 56 { |
52 testXMLSetups = randomiseOrder(testXMLSetups); | 57 testXMLSetups = randomiseOrder(testXMLSetups); |
53 } | 58 } |
54 | 59 |