comparison 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
comparison
equal deleted inserted replaced
1215:5df87aa95395 1216:8d9b3e45b8f2
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) {