Bug 621347 - [SeaMonkey, WINNT 5.2, Debug] mochitests-1: intermittent "test_ws_basic_tests.html | Test timed out"; (Av1) s/ok/is/ typo fix from bug 562681.
authorSerge Gautherie <sgautherie.bz@free.fr>
Mon, 27 Dec 2010 11:18:50 +0100
changeset 59682 d14e3a26d5a08ad3b9901e800e7f25dd10d956ef
parent 59681 24b63f638579fac6c9948ff178a2074da7648e8f
child 59683 0a7d57ee6a0a896be712b9caed03f9ec28f30ead
push id1
push usershaver@mozilla.com
push dateTue, 04 Jan 2011 17:58:04 +0000
bugs621347, 562681
milestone2.0b9pre
Bug 621347 - [SeaMonkey, WINNT 5.2, Debug] mochitests-1: intermittent "test_ws_basic_tests.html | Test timed out"; (Av1) s/ok/is/ typo fix from bug 562681. r=Olli.Pettay a=(test only).
content/base/test/test_ws_basic_tests.html
--- a/content/base/test/test_ws_basic_tests.html
+++ b/content/base/test/test_ws_basic_tests.html
@@ -159,17 +159,17 @@ function testWebSocket5() {
   ws.onopen = function(e) {
     this.close();
   }
   ws.onclose = function(e) {
     //ok(e.wasClean, "Connection should have closed cleanly.");
     is(this.bufferedAmount, 0, "Shouldn't have anything buffered");
     var msg = "some data";
     this.send(msg);
-    ok(this.bufferedAmount, msg.length, "Should have some data buffered");
+    is(this.bufferedAmount, msg.length, "Should have some data buffered");
     finishWSTest();
   }
   ws.onerror = function(e) {
     ok(false, "onerror called!");
     finishWSTest();
   }
 }