ability to ignore tests by returning false

This commit is contained in:
brianc 2010-10-19 22:58:25 -05:00
parent 52a0d0459d
commit cb4ea65bc8

View File

@ -48,10 +48,10 @@ test = function(name, action) {
name = ' ' + name;
}
test.tabout += 2;
process.stdout.write('.');
try{
global.TEST_RESULTS.testCount++;
action();
process.stdout.write( action() === false ? '?' : '.');
}catch(e) {
console.log('');
console.log(name);
@ -91,3 +91,12 @@ var p = MemoryStream.prototype;
p.write = function(packet) {
this.packets.push(packet);
};
createClient = function() {
var stream = new MemoryStream();
stream.readyState = "open";
var client = new Client({
stream: stream
});
client.connect();
};