Index: trunk/extensions/ParserPlayground/tests/roundtrip.js |
— | — | @@ -1,4 +1,5 @@ |
2 | 2 | var fs = require('fs'), |
| 3 | + jsDiff = require('diff'), |
3 | 4 | DumpReader = require('./dumpReader.js').DumpReader; |
4 | 5 | |
5 | 6 | // Fetch up some of our wacky parser bits... |
— | — | @@ -39,6 +40,8 @@ |
40 | 41 | return true; |
41 | 42 | } else { |
42 | 43 | console.log('MISMATCH: ', msg); |
| 44 | + var patch = jsDiff.createPatch('wikitext.txt', a, b, 'before', 'after'); |
| 45 | + console.log(patch); |
43 | 46 | return false; |
44 | 47 | } |
45 | 48 | } |
Index: trunk/extensions/ParserPlayground/tests/README |
— | — | @@ -4,5 +4,6 @@ |
5 | 5 | |
6 | 6 | Need npm modules: |
7 | 7 | * jquery |
8 | | -* libxmljs |
| 8 | +* diff |
| 9 | +* libxmljs (requires native compilation) |
9 | 10 | |