From 4b2be133ae06b904afed640b0a288c8373df877f 2015-01-05 19:23:11 From: Min RK Date: 2015-01-05 19:23:11 Subject: [PATCH] Merge pull request #7379 from juhasch/js-tests Js tests --- diff --git a/IPython/html/tests/notebook/display_image.js b/IPython/html/tests/notebook/display_image.js index e04a252..1e980e6 100644 --- a/IPython/html/tests/notebook/display_image.js +++ b/IPython/html/tests/notebook/display_image.js @@ -16,7 +16,7 @@ b64_image_data = { casper.notebook_test(function () { this.test_img_shape = function(fmt, retina) { this.thenEvaluate(function (b64data, retina) { - IPython.notebook.insert_cell_at_index(0, "code"); + IPython.notebook.insert_cell_at_index("code", 0); var cell = IPython.notebook.get_cell(0); cell.set_text([ "import base64", diff --git a/IPython/html/tests/notebook/output.js b/IPython/html/tests/notebook/output.js index b519b64..b442a04 100644 --- a/IPython/html/tests/notebook/output.js +++ b/IPython/html/tests/notebook/output.js @@ -10,7 +10,7 @@ casper.notebook_test(function () { }); this.thenEvaluate(function (code) { - IPython.notebook.insert_cell_at_index(0, "code"); + IPython.notebook.insert_cell_at_index("code", 0); var cell = IPython.notebook.get_cell(0); cell.set_text(code); cell.execute(); @@ -38,7 +38,7 @@ casper.notebook_test(function () { }; this.thenEvaluate(function () { - IPython.notebook.insert_cell_at_index(0, "code"); + IPython.notebook.insert_cell_at_index("code", 0); var cell = IPython.notebook.get_cell(0); cell.set_text([ "from __future__ import print_function",