Mercurial > hg > webaudioevaluationtool
comparison core.js @ 1380:5dcad8eb2a02
Bug #1560: Test pages do repeat. Note that the result XML will have their IDs repeated.
author | Nicholas Jillings <nickjillings@users.noreply.github.com> |
---|---|
date | Thu, 11 Feb 2016 17:28:27 +0000 |
parents | 797ca4ec7832 |
children | b7bf91ac6d01 |
comparison
equal
deleted
inserted
replaced
1379:797ca4ec7832 | 1380:5dcad8eb2a02 |
---|---|
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 } |