Mercurial > hg > webaudioevaluationtool
diff core.js @ 1216:8d9b3e45b8f2
Bug #1629: testPages now controls the number of pages to execute.
author | Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk> |
---|---|
date | Tue, 23 Feb 2016 16:06:03 +0000 |
parents | 98d9ada911f2 |
children | 72b2bb8526b3 |
line wrap: on
line diff
--- a/core.js Tue Feb 23 14:39:06 2016 +0000 +++ b/core.js Tue Feb 23 16:06:03 2016 +0000 @@ -802,10 +802,10 @@ } for (var i=0; i<specification.pages.length; i++) { - if (specification.testPages < i && specification.testPages != 0) {break;} + if (specification.testPages <= i && specification.testPages != 0) {break;} this.stateMap.push(pageHolder[i]); - } + if (specification.preTest != null) {this.preTestSurvey = specification.preTest;} if (specification.postTest != null) {this.postTestSurvey = specification.postTest;}