changeset 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 320724a2389b
files core.js
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/core.js	Thu Feb 11 16:54:33 2016 +0000
+++ b/core.js	Thu Feb 11 17:28:27 2016 +0000
@@ -738,7 +738,12 @@
 		var pageHolder = [];
 		for (var page of specification.pages)
 		{
-			pageHolder.push(page);
+            var repeat = page.repeatCount;
+            while(repeat >= 0)
+            {
+                pageHolder.push(page);
+                repeat--;
+            }
 		}
 		if (specification.randomiseOrder)
 		{