From a0929ab8c1436f032e26a416c9cdf4479dadc436 Mon Sep 17 00:00:00 2001 From: Matthias Bussonnier Date: Fri, 27 Nov 2015 13:29:03 +0100 Subject: [PATCH] Timeout is an option of `waitFor`, not `then` --- notebook/tests/util.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/notebook/tests/util.js b/notebook/tests/util.js index aa0d995a5..4f5eb18aa 100644 --- a/notebook/tests/util.js +++ b/notebook/tests/util.js @@ -166,11 +166,11 @@ casper.wait_for_output = function (cell_num, out_num) { }, // pass parameter from the test suite js to the browser code js {c : cell_num, o : out_num}); + }, + function then() { }, + function timeout() { + this.echo("wait_for_output timed out!"); }); - }, - function then() { }, - function timeout() { - this.echo("wait_for_output timed out!"); }); };