update js serialize test

msg count and msgspec v5 API changes
This commit is contained in:
Min RK 2015-02-28 13:31:05 -08:00
parent b4c8bda690
commit fb12238bb2

View File

@ -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");
});
});
});