From a81c160e7a3e69ba59d0ded5c24d1a876c7515cb 2015-02-28 21:31:05 From: Min RK Date: 2015-02-28 21:31:05 Subject: [PATCH] update js serialize test msg count and msgspec v5 API changes --- diff --git a/IPython/html/tests/services/serialize.js b/IPython/html/tests/services/serialize.js index 193e538..e51edf5 100644 --- a/IPython/html/tests/services/serialize.js +++ b/IPython/html/tests/services/serialize.js @@ -110,7 +110,7 @@ casper.notebook_test(function () { // validate captured buffers Python-side this.then(function () { var index = this.append_cell([ - "assert len(msgs) == 1, len(msgs)", + "assert len(msgs) == 3, len(msgs)", "bufs = msgs[0]['buffers']", "assert len(bufs) == len(buffers), bufs", "assert bufs[0].bytes == buffers[0], bufs[0].bytes", @@ -121,7 +121,7 @@ casper.notebook_test(function () { this.wait_for_output(index); this.then(function () { var out = this.get_output_cell(index); - this.test.assertEquals(out['text/plain'], '1', "Python received buffers"); + this.test.assertEquals(out.data['text/plain'], '1', "Python received buffers"); }); }); });