# HG changeset patch # User Nicholas Jillings # Date 1441887376 -3600 # Node ID 349e0572ca2c4ba29fa61a63aa9f9611cdf280cd # Parent ae6c77e784948b16c1a7c6e88ce840696c1ad447 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 ae6c77e78494 -r 349e0572ca2c 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 -