Show More
@@ -216,7 +216,7 casper.notebook_test(function () { | |||||
216 | ' self.msg = [content, buffers]', |
|
216 | ' self.msg = [content, buffers]', | |
217 | 'x=TestWidget()', |
|
217 | 'x=TestWidget()', | |
218 | 'display(x)', |
|
218 | 'display(x)', | |
219 |
'print |
|
219 | 'print(x.model_id)'].join('\n'), function(index){ | |
220 | testwidget.index = index; |
|
220 | testwidget.index = index; | |
221 | testwidget.model_id = this.get_output_cell(index).text.trim(); |
|
221 | testwidget.model_id = this.get_output_cell(index).text.trim(); | |
222 | }); |
|
222 | }); | |
@@ -239,7 +239,7 casper.notebook_test(function () { | |||||
239 | this.test.assertEquals(result, ["1.5", "2", "3.1"], "JSON custom serializer kernel -> js"); |
|
239 | this.test.assertEquals(result, ["1.5", "2", "3.1"], "JSON custom serializer kernel -> js"); | |
240 | }); |
|
240 | }); | |
241 |
|
241 | |||
242 |
this.assert_output_equals('print |
|
242 | this.assert_output_equals('print(x.array_list.tolist() == [1.51234, 25678.0, 3.1])', | |
243 | 'True', 'JSON custom serializer js -> kernel'); |
|
243 | 'True', 'JSON custom serializer js -> kernel'); | |
244 |
|
244 | |||
245 | if (this.slimerjs) { |
|
245 | if (this.slimerjs) { |
General Comments 0
You need to be logged in to leave comments.
Login now