Mercurial > hg > webaudioevaluationtool
comparison 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 |
comparison
equal
deleted
inserted
replaced
2123:d071acc7160e | 2124:937c6671892f |
---|---|
800 { | 800 { |
801 pageHolder[i].presentedId = i; | 801 pageHolder[i].presentedId = i; |
802 } | 802 } |
803 for (var i=0; i<specification.pages.length; i++) | 803 for (var i=0; i<specification.pages.length; i++) |
804 { | 804 { |
805 if (specification.testPages < i && specification.testPages != 0) {break;} | 805 if (specification.testPages <= i && specification.testPages != 0) {break;} |
806 this.stateMap.push(pageHolder[i]); | 806 this.stateMap.push(pageHolder[i]); |
807 | 807 } |
808 } | 808 |
809 if (specification.preTest != null) {this.preTestSurvey = specification.preTest;} | 809 if (specification.preTest != null) {this.preTestSurvey = specification.preTest;} |
810 if (specification.postTest != null) {this.postTestSurvey = specification.postTest;} | 810 if (specification.postTest != null) {this.postTestSurvey = specification.postTest;} |
811 | 811 |
812 if (this.stateMap.length > 0) { | 812 if (this.stateMap.length > 0) { |
813 if(this.stateIndex != null) { | 813 if(this.stateIndex != null) { |