# HG changeset patch # User Nicholas Jillings # Date 1441887376 -3600 # Node ID a8db8084d32af5c01db2de06361db9a4c2d75d04 # Parent d3d691e33fecafa90bd52c20a4f74a9c4430e847 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 d3d691e33fec -r a8db8084d32a 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 -