# HG changeset patch # User Nicholas Jillings # Date 1432461101 -3600 # Node ID e50a0ea303260334dec641cff26186f114ae49c7 # Parent 17561e29240949ff5e112d32867dbac69a100558 Bug #1239: Randomisation of page orders flag in tag correctly applied. diff -r 17561e292409 -r e50a0ea30326 ape.js --- 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);