comparison core.js @ 1180:3303a667548a

Bug #1560: Test pages do repeat. Note that the result XML will have their IDs repeated.
author Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk>
date Thu, 11 Feb 2016 17:28:27 +0000
parents c2e19bc54c3c
children b7bf91ac6d01
comparison
equal deleted inserted replaced
1179:c2e19bc54c3c 1180:3303a667548a
736 736
737 // Get the data from Specification 737 // Get the data from Specification
738 var pageHolder = []; 738 var pageHolder = [];
739 for (var page of specification.pages) 739 for (var page of specification.pages)
740 { 740 {
741 pageHolder.push(page); 741 var repeat = page.repeatCount;
742 while(repeat >= 0)
743 {
744 pageHolder.push(page);
745 repeat--;
746 }
742 } 747 }
743 if (specification.randomiseOrder) 748 if (specification.randomiseOrder)
744 { 749 {
745 pageHolder = randomiseOrder(pageHolder); 750 pageHolder = randomiseOrder(pageHolder);
746 } 751 }