diff --git a/IPython/html/tests/notebook/markdown.js b/IPython/html/tests/notebook/markdown.js
index 0c1f61eed..5f28d318e 100644
--- a/IPython/html/tests/notebook/markdown.js
+++ b/IPython/html/tests/notebook/markdown.js
@@ -17,20 +17,31 @@ casper.notebook_test(function () {
$('#to_code').mouseenter().click();
$('#to_markdown').mouseenter().click();
var cell = IPython.notebook.get_selected_cell();
- cell.set_text('# Foo');
+ cell.set_text('# Bar');
$('#run_cell').mouseenter().click();
return cell.get_rendered();
});
- this.test.assertEquals(output.trim(), '
Foo
', 'Markdown menubar items work.');
+ this.test.assertEquals(output.trim(), 'Bar
', 'Markdown menubar items work.');
// Test toolbar buttons.
output = this.evaluate(function () {
$('#cell_type').val('code').change();
$('#cell_type').val('markdown').change();
var cell = IPython.notebook.get_selected_cell();
- cell.set_text('# Foo');
+ cell.set_text('# Baz');
$('#run_b').click();
return cell.get_rendered();
});
- this.test.assertEquals(output.trim(), 'Foo
', 'Markdown toolbar items work.');
+ this.test.assertEquals(output.trim(), 'Baz
', 'Markdown toolbar items work.');
+
+ // Test JavaScript models.
+ var output = this.evaluate(function () {
+
+ var cell = IPython.notebook.insert_cell_at_index('markdown', 0);
+ cell.set_text('# Qux');
+ cell.render();
+ return cell.get_rendered();
+ });
+ this.test.assertEquals(output.trim(), 'Qux
', 'Markdown JS API works.');
+
});