From fb12238bb20ca023217951936885ead9feed2070 Mon Sep 17 00:00:00 2001 From: Min RK Date: Sat, 28 Feb 2015 13:31:05 -0800 Subject: [PATCH] update js serialize test msg count and msgspec v5 API changes --- IPython/html/tests/services/serialize.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/IPython/html/tests/services/serialize.js b/IPython/html/tests/services/serialize.js index 193e53806..e51edf5a6 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"); }); }); });