mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
add yet more debugging info to the websocket test.
This commit is contained in:
parent
2fb0ec3f31
commit
6eba85d113
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user