From a9610dc41376302f14c312d0c489d43238b94ffd Mon Sep 17 00:00:00 2001 From: Jonathan Frederic Date: Wed, 19 Aug 2015 14:37:29 -0700 Subject: [PATCH] Assume idle if late loaded. --- notebook/tests/util.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/notebook/tests/util.js b/notebook/tests/util.js index 44ac2fe1c..8dfda3551 100644 --- a/notebook/tests/util.js +++ b/notebook/tests/util.js @@ -58,7 +58,7 @@ casper.open_new_notebook = function () { // track the IPython busy/idle state this.thenEvaluate(function () { require(['base/js/namespace', 'base/js/events'], function (IPython, events) { - + IPython._status = 'idle'; events.on('kernel_idle.Kernel',function () { IPython._status = 'idle'; }); @@ -149,7 +149,6 @@ casper.wait_for_idle = function () { // Waits for the notebook to idle. this.waitFor(function () { return this.evaluate(function () { - console.log(IPython._status); return IPython._status == 'idle'; }); });