From 208897b0408edc0563fc67f64afc776a550dc35e Mon Sep 17 00:00:00 2001 From: Matt Pass Date: Sat, 25 Apr 2015 17:34:38 +0100 Subject: [PATCH] Temp tweaks to get working, investigate more! Need to clear the serverQueue, seemingly because the load process doesn't clear the queue in time? This would be quite a big thing as we need to be able to have a batch of commands and run them without sync issues. To investigate, The if condition check needs to now deduct 1 from the changeGeneration? Why is this? Also display test complete when finished. --- test/index.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/test/index.php b/test/index.php index b27c96a..ee1cc8c 100644 --- a/test/index.php +++ b/test/index.php @@ -49,6 +49,8 @@ test = { cM = ICEcoder.getcMInstance(); if (cM && "undefined" != typeof ICEcoder.openFiles[0]) { testResult("+ GOOD",title+". Took "+t+"ms",x); + ICEcoder.serverMessage(); + top.ICEcoder.serverQueue("del",0); test.updateDoc(); } else if (t==1000) { testResult("- FAIL",title+". Took "+t+"ms",x); @@ -79,7 +81,7 @@ test = { x = setInterval(function() { wait(); cM = ICEcoder.getcMInstance(); - if (cM && ICEcoder.savedPoints[0]==cM.changeGeneration()) { + if (cM && ICEcoder.savedPoints[0]==cM.changeGeneration()-1) { testResult("+ GOOD",title+". Took "+t+"ms",x); test.tagWrapper(); } else if (t==1000) { @@ -239,7 +241,9 @@ test = { if (cM.getValue() == '