big commands refactor in prep for hackathon

This commit is contained in:
Peter Cottle 2013-07-27 23:49:27 -07:00
parent 5ec8a2916f
commit e422bdb181
11 changed files with 1071 additions and 1077 deletions

View file

@ -19,14 +19,15 @@ var expectTreeAsync = function(headless, levelBlob) {
// dont do interactive rebase levels
return;
}
var start = Date.now();
var start;
runs(function() {
start = Date.now();
headless.sendCommand(command);
});
waitsFor(function() {
var diff = (Date.now() - start);
if (diff > TIME - 50) {
if (diff > TIME - 10) {
console.log('not going to match', command);
}
var result = compareLevelTree(headless, levelBlob);