Shuffled around some assertions and logs

This commit is contained in:
Caleb James DeLisle
2016-03-25 14:14:19 +01:00
parent 420a7098a6
commit f62ec85a4c
3 changed files with 7 additions and 9 deletions

View File

@@ -35,6 +35,7 @@ var applyChange = function(ctx, oldval, newval) {
if (newval.length !== commonStart + commonEnd) {
if (ctx.localChange) { ctx.localChange(true); }
ctx.insert(commonStart, newval.slice(commonStart, newval.length - commonEnd));
console.log("insert: " + newval.slice(commonStart, newval.length - commonEnd));
}
};
@@ -63,10 +64,8 @@ var attachTextarea = function(config) {
if (ctx.getUserDoc() !== newContent) {
console.log("Expected that: `ctx.getUserDoc() === newContent`!");
}
console.log("1: " + ctx.Sha.hex_sha256(ctx.getUserDoc()));
return true;
}
console.log("no change");
return false;
};
};