diff --git a/test/integration/expression-tests/result_item.html.tmpl b/test/integration/expression-tests/result_item.html.tmpl
index 47337d76cf4..5be847f6e4a 100644
--- a/test/integration/expression-tests/result_item.html.tmpl
+++ b/test/integration/expression-tests/result_item.html.tmpl
@@ -10,10 +10,13 @@
     </td>
     <td>
         <h2 style="text-align:center; background:<%- r.color %>"><a href="<%- r.group %>/case.json">&nbsp;</a></h2>
-        <div style="max-width: 400px; overflow: scroll; font-family: monospace;">
+        <div>
+<% if (r.serialized) { %>
+            Serialized:
             <pre>
-<%- r.compiledJs %>
+<%- r.serialized %>
             </pre>
+<% } %>
         </div>
     </td>
 </tr>
diff --git a/test/integration/lib/expression.js b/test/integration/lib/expression.js
index 13abf61d16c..de348556003 100644
--- a/test/integration/lib/expression.js
+++ b/test/integration/lib/expression.js
@@ -177,7 +177,8 @@ exports.run = function (implementation, options, runExpressionTest) {
             params.difference = diffOutput.html;
             if (diffOutput.text) { console.log(diffOutput.text); }
 
-            params.expression = JSON.stringify(fixture.expression, null, 2);
+            params.expression = compactStringify(fixture.expression);
+            params.serialized = compactStringify(result.serialized);
 
             done();
         } catch (e) {