Import Tycho weave client

This commit is contained in:
wolfbeast 2018-10-06 06:57:51 +02:00 committed by Roy Tam
commit c53787dfdb
183 changed files with 7272 additions and 16759 deletions

View file

@ -8,46 +8,38 @@ function run_test() {
catch: Utils.catch,
_log: {
debug: function(str) {
didThrow = str.search(/^Exception/) == 0;
didThrow = str.search(/^Exception: /) == 0;
},
info: function(str) {
wasLocked = str.indexOf("Cannot start sync: already syncing?") == 0;
}
},
func: function() {
return this.catch(function() {
rightThis = this == obj;
didCall = true;
return 5;
})();
},
func: function() this.catch(function() {
rightThis = this == obj;
didCall = true;
return 5;
})(),
throwy: function() {
return this.catch(function() {
rightThis = this == obj;
didCall = true;
throw 10;
})();
},
throwy: function() this.catch(function() {
rightThis = this == obj;
didCall = true;
throw 10;
})(),
callbacky: function() {
return this.catch(function() {
rightThis = this == obj;
didCall = true;
throw 10;
}, function(ex) {
wasTen = (ex == 10)
})();
},
callbacky: function() this.catch(function() {
rightThis = this == obj;
didCall = true;
throw 10;
}, function(ex) {
wasTen = (ex == 10)
})(),
lockedy: function() {
return this.catch(function() {
rightThis = this == obj;
didCall = true;
throw("Could not acquire lock.");
})();
}
lockedy: function() this.catch(function() {
rightThis = this == obj;
didCall = true;
throw("Could not acquire lock.");
})()
};
_("Make sure a normal call will call and return");