changeset 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
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);