File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,20 @@ OR this script
2323
2424 node bin/gen.visual_diff.js --help
2525
26+ ## Examples
27+
28+ ``` bash
29+ # Compare rendering of two existing HTML files
30+ $ node gen.visual_diff.js --outdir /tmp/ --url1 file://` pwd` /enwiki/Hampi.php.html --url2 file://` pwd` /enwiki/Hampi.parsoid.html
31+
32+ # Fetch PHP parser and Parsoid HTML output from their servers and compare them (read config from a config file)
33+ $ node gen.visual_diff.js --wiki itwiki --title Luna --config parsoid.diffsettings.js
34+
35+ # Fetch PHP parser and Parsoid HTML output from their servers and compare them (config on commandline), and also dump the HTML
36+ # after suitably postprocessing them
37+ $ node gen.visual_diff.js --wiki enwiki --title Hampi --html1PP ../lib/php_parser.postprocess.js --html2PP ../lib/parsoid.postprocess.js --dumpHTML1 --dumpHTML2
38+ ```
39+
2640## Testreduce client
2741
2842testreduce/ has client scripts and example config for mass testing
You can’t perform that action at this time.
0 commit comments