# HG changeset patch # User Nicholas Jillings # Date 1441887376 -3600 # Node ID 1eacf6c1056a5cd895970fbc44f77cef62c77293 # Parent 8d191cf6c50bfd9f4ca2cd00f08962decc5b5013 Feature #1298: node has an optional attribute testPages. Specify the number of pages the test participant to do and the tool will select a random page up to the number specified. diff -r 8d191cf6c50b -r 1eacf6c1056a core.js --- a/core.js Thu Sep 10 12:53:55 2015 +0100 +++ b/core.js Thu Sep 10 13:16:16 2015 +0100 @@ -549,16 +549,6 @@ specification.decode(); testState.stateMap.push(specification.preTest); - - // New check if we need to randomise the test order - if (specification.randomiseOrder) - { - specification.audioHolders = randomiseOrder(specification.audioHolders); - for (var i=0; i audioHolders.length) + { + console.log('Warning: You have specified '+audioHolders.length+' tests but requested '+this.testPages+' be completed!'); + this.testPages = audioHolders.length; + } + var aH = this.audioHolders; + this.audioHolders = []; + for (var i=0; i - + Please enter your location. @@ -35,9 +35,6 @@ elementListenTracker -