changeset 511:01319bf379ea Dev_main

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 ea97b12c1f1e
children f4800ccc4d54
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)
 		{