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
This commit is contained in:
Matt Pass
2013-09-25 09:49:06 +01:00
parent 0765ab378b
commit fe2719a6e3

View File

@@ -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();