add yet more debugging info to the websocket test.

This commit is contained in:
Robert Sayre 2010-07-12 17:47:53 -07:00
parent 2fb0ec3f31
commit 6eba85d113

View File

@ -101,12 +101,15 @@ function CreateTestWS(ws_location, ws_protocol)
ws = new WebSocket(ws_location, ws_protocol);
}
ws._testNumber = current_test;
ws._receivedCloseEvent = false;
ok(true, "added testNumber: " + ws._testNumber +"\n");
ws.onerror = function(e)
{
ok(false, "onerror called on test " + e.target._testNumber + "!");
};
ws._testNumber = current_test;
ws._receivedCloseEvent = false;
ws.addEventListener("close", function(e)
{
ws._receivedCloseEvent = true;