From 849f1397874a7087724d65bda794f5562529cb95 Mon Sep 17 00:00:00 2001 From: Olli Pettay Date: Sat, 19 Jun 2010 19:25:00 +0300 Subject: [PATCH] Bug 573227, disable .wasClean tests --HG-- extra : rebase_source : 1c5e42ee6f80e94c40c212cf4b20caba0fdf7806 --- content/base/test/test_websocket.html | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/content/base/test/test_websocket.html b/content/base/test/test_websocket.html index b6a62941011..f723a883725 100644 --- a/content/base/test/test_websocket.html +++ b/content/base/test/test_websocket.html @@ -70,7 +70,7 @@ function shouldNotReceiveCloseEvent(e) function shouldCloseCleanly(e) { var ws = e.target; - ok(e.wasClean, "the ws connection in test " + ws._testNumber + " should be closed cleanly"); + //ok(e.wasClean, "the ws connection in test " + ws._testNumber + " should be closed cleanly"); if (ws._timeoutToSucceed != undefined) { clearTimeout(ws._timeoutToSucceed); } @@ -79,7 +79,7 @@ function shouldCloseCleanly(e) function shouldCloseNotCleanly(e) { var ws = e.target; - ok(!e.wasClean, "the ws connection in test " + ws._testNumber + " shouldn't be closed cleanly"); + //ok(!e.wasClean, "the ws connection in test " + ws._testNumber + " shouldn't be closed cleanly"); if (ws._timeoutToSucceed != undefined) { clearTimeout(ws._timeoutToSucceed); } @@ -241,14 +241,13 @@ function test8() ws.onclose = function(e) { shouldCloseNotCleanly(e); - doTest(10); + doTest(9); }; ws._receivedCloseEvent = false; ws.close(); } -// Disabled for now function test9() { var ws = CreateTestWS("ws://mochi.test:8888/tests/content/base/test/file_websocket", "test 9"); @@ -325,11 +324,10 @@ function test12() } ws.close(); ws._receivedCloseEvent = false; - doTest(16); + doTest(13); }; } -// Disabled for now function test13() { var ws = CreateTestWS("ws://mochi.test:8888/tests/content/base/test/file_websocket", "test 13"); @@ -346,7 +344,6 @@ function test13() ws._receivedCloseEvent = false; } -// Disabled for now function test14() { var ws = CreateTestWS("ws://mochi.test:8888/tests/content/base/test/file_websocket", "test 14"); @@ -362,7 +359,6 @@ function test14() ws._receivedCloseEvent = false; } -// Disabled for now. function test15() { var ws = CreateTestWS("ws://mochi.test:8888/tests/content/base/test/file_websocket", "test 15");