Skip to content
This repository was archived by the owner on Apr 22, 2020. It is now read-only.

Commit e0775bb

Browse files
author
mikesamuel
committed
debugging tweak
1 parent 304cf9d commit e0775bb

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

tests/prettify_test.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -761,6 +761,12 @@ <h1>HTML using XMP</h1>
761761
});
762762
var actual = normalizedInnerHtml(document.getElementById(lang));
763763
if (golden !== actual) { // test failed
764+
pre = pre.replace(/\\/g, '\\\\')
765+
.replace(/\r/g, '\\r')
766+
.replace(/\n/g, '\\n\n');
767+
post = post.replace(/\\/g, '\\\\')
768+
.replace(/\r/g, '\\r')
769+
.replace(/\n/g, '\\n\n');
764770
// write out
765771
var pre = commonPrefix(golden, actual);
766772
var post = commonSuffix(golden, actual, pre);

0 commit comments

Comments
 (0)