From 36bf738fa5c7e92e9566b032562aa40ae92590bb 2014-01-12 21:54:47 From: Paul Ivanov Date: 2014-01-12 21:54:47 Subject: [PATCH] add test for latex to/fromJSON --- diff --git a/IPython/html/tests/casperjs/test_cases/nb_roundtrip.js b/IPython/html/tests/casperjs/test_cases/nb_roundtrip.js index eb6b5b6..a903358 100644 --- a/IPython/html/tests/casperjs/test_cases/nb_roundtrip.js +++ b/IPython/html/tests/casperjs/test_cases/nb_roundtrip.js @@ -108,5 +108,23 @@ casper.notebook_test(function () { this.then(function ( ) { check_output_area.apply(this, ['display_data', ['text', 'json']]); }); + + this.then(function() { + clear_and_execute(this, + "from IPython.display import Latex; Latex('$X^2$')"); + }); + + this.then(function ( ) { + check_output_area.apply(this, ['pyout', ['text', 'latex']]); + }); + + this.then(function() { + clear_and_execute(this, + "from IPython.display import Latex, display; display(Latex('$X^2$'))"); + }); + + this.then(function ( ) { + check_output_area.apply(this, ['display_data', ['text', 'latex']]); + }); });