Test("Test chat system", Test.ASYNCH( ), function(_global, settings) {
// will fail on WZ 3.1, pass on WZ 3.2+
if (!hasNative( "chat", "chat() natively defined?" )) {
// abort the test if failed
ABORT( "Unable to test chat()" );
} else {
comment( "Sending chat() message..." );
chat(me, "test");
}
});
function eventChat(sender, to, message) {
Test("eventChat() triggered", Test.APPEND("Test chat system"), function() {
equal( message, "test", "message == 'test'" );
equal( sender, me, "sender == me" );
equal( to, me, "to == me" );
FINISH( "End of chat system test" );
});
}