From 583b3fefb7dbc061417e28e92c1d5961501907cb Mon Sep 17 00:00:00 2001 From: Kyle Huey Date: Sat, 17 Mar 2012 13:07:28 -0700 Subject: [PATCH] Bug 612311: Add some instrumentation. r=me --- dom/workers/test/suspend_worker.js | 1 + dom/workers/test/terminate_worker.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/dom/workers/test/suspend_worker.js b/dom/workers/test/suspend_worker.js index 43eb24a7ad3..31e826bdc2e 100644 --- a/dom/workers/test/suspend_worker.js +++ b/dom/workers/test/suspend_worker.js @@ -5,6 +5,7 @@ var counter = 0; var interval = setInterval(function() { + dump("WorkerAlive\n"); postMessage(++counter); }, 100); diff --git a/dom/workers/test/terminate_worker.js b/dom/workers/test/terminate_worker.js index ad4e8252773..6b7b3fffbeb 100644 --- a/dom/workers/test/terminate_worker.js +++ b/dom/workers/test/terminate_worker.js @@ -10,4 +10,4 @@ onmessage = function(event) { throw "No messages should reach me!"; } -setInterval(function() { postMessage("Still alive!"); }, 100); +setInterval(function() { dump("WorkerAlive\n"); postMessage("Still alive!"); }, 100);