Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(35)

Unified Diff: LayoutTests/inspector/tracing/worker-events.html

Issue 643533003: DevTools: remove unnecessary setInterval from worker-events.html test (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/inspector/tracing/resources/worker.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/inspector/tracing/worker-events.html
diff --git a/LayoutTests/inspector/tracing/worker-events.html b/LayoutTests/inspector/tracing/worker-events.html
index ef6c925556817c0e73ffa0710914f2a6b7cfa898..aea4430c27e93e89edcfdbd7d44682faede97c1d 100644
--- a/LayoutTests/inspector/tracing/worker-events.html
+++ b/LayoutTests/inspector/tracing/worker-events.html
@@ -5,9 +5,13 @@
<script src="../tracing-test.js"></script>
<script>
+// Save references to the worker objects to make sure they are not GC'ed.
+var worker1;
+var worker2;
+
function startWorkerAndRunTest()
{
- var worker1 = new Worker("resources/worker.js");
+ worker1 = new Worker("resources/worker.js");
worker1.postMessage("");
if (window.testRunner) {
@@ -24,7 +28,7 @@ function startWorkerAndRunTest()
function startSecondWorker(onActionComplete)
{
- var worker2 = new Worker("resources/worker.js");
+ worker2 = new Worker("resources/worker.js");
worker2.postMessage("");
worker2.onmessage = function(event)
{
« no previous file with comments | « LayoutTests/inspector/tracing/resources/worker.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698