diff --git a/notebook/tests/notebook/output.js b/notebook/tests/notebook/output.js
index b442a044f..db6f276d7 100644
--- a/notebook/tests/notebook/output.js
+++ b/notebook/tests/notebook/output.js
@@ -95,4 +95,32 @@ casper.notebook_test(function () {
text: "3\n"
}]
);
+ this.test_coalesced_output("test nested svg", [
+ 'from IPython.display import SVG',
+ 'nested_svg="""',
+ '"""',
+ 'SVG(nested_svg)'
+ ].join("\n"), [{
+ output_type: "execute_result",
+ data: {
+ "text/plain" : "",
+ "image/svg+xml": [
+ '',
+ ' ',
+ ' ',
+ ' ',
+ ' ',
+ ' ',
+ ' ',
+ ''].join("\n")
+ },
+ }]
+ );
});