From f4bfdce94bb6c15c56d94237ea9146e6776d9c1b 2014-01-14 02:54:55 From: Min RK Date: 2014-01-14 02:54:55 Subject: [PATCH] Merge pull request #4799 from ivanov/minor-jstest minor js test fix --- diff --git a/IPython/html/tests/casperjs/test_cases/nb_roundtrip.js b/IPython/html/tests/casperjs/test_cases/nb_roundtrip.js index 4545d0c..06eaa61 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,