mirror of
https://github.com/icecoder/ICEcoder.git
synced 2026-03-06 00:34:00 +01:00
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.
This commit is contained in:
@@ -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() == '<script>\nICEcoder = "awesome";\n<\/script>') {
|
||||
testResult("+ GOOD",title);
|
||||
setTimeout(function() {
|
||||
ICEcoder.closeTab(1,false,true);
|
||||
ICEcoder.closeTab(1,false,true);
|
||||
console.log('TEST COMPLETE!');
|
||||
alert('Test Complete!\n\nRan '+s+' of '+total+' tests OK.\nSee console for more details.');
|
||||
},200);
|
||||
} else {
|
||||
testResult("- FAIL",title);
|
||||
|
||||
Reference in New Issue
Block a user