diff interfaces/timeline.js @ 2790:cae61c5bbed1

Completed #133
author Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk>
date Sat, 22 Apr 2017 17:56:18 +0100
parents c74c698795a9
children 50bc3d714601
line wrap: on
line diff
--- a/interfaces/timeline.js	Sat Apr 22 17:53:51 2017 +0100
+++ b/interfaces/timeline.js	Sat Apr 22 17:56:18 2017 +0100
@@ -489,14 +489,14 @@
             switch (checks[i].name) {
                 case 'fragmentPlayed':
                     //Check if all fragments have been played
-                    checkState = interfaceContext.checkAllPlayed();
+                    checkState = interfaceContext.checkAllPlayed(checks[i].errorMessage);
                     break;
                 case 'fragmentFullPlayback':
                     //Check if all fragments have played to their full length
-                    checkState = interfaceContext.checkFragmentsFullyPlayed();
+                    checkState = interfaceContext.checkFragmentsFullyPlayed(checks[i].errorMessage);
                     break;
                 case 'fragmentComments':
-                    checkState = interfaceContext.checkAllCommented();
+                    checkState = interfaceContext.checkAllCommented(checks[i].errorMessage);
                     break;
                 default:
                     console.log("WARNING - Check option " + checks[i].check + " is not supported on this interface");