Mercurial > hg > webaudioevaluationtool
diff core.js @ 2124:937c6671892f
Bug #1629: testPages now controls the number of pages to execute.
author | Nicholas Jillings <nickjillings@users.noreply.github.com> |
---|---|
date | Tue, 23 Feb 2016 16:06:03 +0000 |
parents | 06c45b706fa0 |
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;}