Bug 483633 - Mochitest test_threadErrors.html runs fine but needs to check/report success; (Av1) Add |ok(true, ...);|; r+sr=jst
authorSerge Gautherie <sgautherie.bz@free.fr>
Sat, 21 Mar 2009 00:38:52 +0100
changeset 26437 ecb3f8997a38979a44faa24de5471d56827cf0b0
parent 26436 146ea3a52cf909799d95cb44639e5e8f6cfa0707
child 26438 c049ba50ea04f5a48aefd12f6c188a64c575aa71
push id6067
push usersgautherie.bz@free.fr
push dateFri, 20 Mar 2009 23:40:32 +0000
treeherdermozilla-central@c049ba50ea04 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs483633
milestone1.9.2a1pre
Bug 483633 - Mochitest test_threadErrors.html runs fine but needs to check/report success; (Av1) Add |ok(true, ...);|; r+sr=jst
dom/src/threads/test/test_threadErrors.html
--- a/dom/src/threads/test/test_threadErrors.html
+++ b/dom/src/threads/test/test_threadErrors.html
@@ -34,16 +34,17 @@ Tests of DOM Worker Threads (Bug 437152)
       SimpleTest.finish();
       return;
     }
 
     failedWorkers.push(event.target);
     actualErrorCount++;
 
     if (actualErrorCount == expectedErrorCount) {
+      ok(true, "all errors correctly detected");
       SimpleTest.finish();
     }
   };
 
   for (var i = 1; i <= expectedErrorCount; i++) {
     var worker = new Worker("threadErrors_worker" + i + ".js");
     worker.onmessage = messageListener;
     worker.onerror = errorListener;
@@ -51,9 +52,8 @@ Tests of DOM Worker Threads (Bug 437152)
   }
 
   SimpleTest.waitForExplicitFinish();
 
 </script>
 </pre>
 </body>
 </html>
-