From fe2719a6e314bfb4f6c53d372c72daa291805657 Mon Sep 17 00:00:00 2001 From: Matt Pass Date: Wed, 25 Sep 2013 09:49:06 +0100 Subject: [PATCH] savedPoints now plus compare to changeGeneration Array is now called savedPoints and has different role to changedContent Compare to changedGeneration when determining if a doc has changed --- test/index.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/index.php b/test/index.php index 6787af7..cb20370 100644 --- a/test/index.php +++ b/test/index.php @@ -74,19 +74,19 @@ test = { saveFile: function() { title = "Save file"; - o.p = ICEcoder.changedContent[0]; + o.p = ICEcoder.savedPoints[0]; t = 0; x = setInterval(function() { wait(); cM = ICEcoder.getcMInstance(); - if (cM && ICEcoder.changedContent[0]==0) { + if (cM && ICEcoder.savedPoints[0]==cM.changeGeneration()) { testResult("+ GOOD",title+". Took "+t+"ms",x); test.tagWrapper(); } else if (t==1000) { testResult("- FAIL",title+". Took "+t+"ms",x); testStopped(); } - o.p = ICEcoder.changedContent[0]; + o.p = ICEcoder.savedPoints[0]; t++; },1); result = ICEcoder.saveFile();