From 03eedd52e26acad425e4bf02dc249b51d32b8640 Mon Sep 17 00:00:00 2001 From: Paul Ivanov Date: Mon, 13 Jan 2014 18:53:54 -0800 Subject: [PATCH] minor js test fix --- IPython/html/tests/casperjs/test_cases/nb_roundtrip.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/IPython/html/tests/casperjs/test_cases/nb_roundtrip.js b/IPython/html/tests/casperjs/test_cases/nb_roundtrip.js index 4545d0c22..06eaa6146 100644 --- a/IPython/html/tests/casperjs/test_cases/nb_roundtrip.js +++ b/IPython/html/tests/casperjs/test_cases/nb_roundtrip.js @@ -44,6 +44,8 @@ function check_output_area(output_type, keys) { var cell = IPython.notebook.get_cell(1).output_area.fromJSON(json); return json; }); + // The evaluate call above happens asyncrhonously: wait for cell[1] to have output + this.wait_for_output(1); var result = this.get_output_cell(0); var result2 = this.get_output_cell(1); this.test.assertEquals(result.output_type, output_type,