summaryrefslogtreecommitdiffstatshomepage
path: root/tests/t0106-diff.sh
blob: e140bcc32f9887c259d17d616db2c98bbe12d7d1 (plain)
pre { line-height: 125%; } td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } .highlight .hll { background-color: #ffffcc } .highlight .c { color: #888888 } /* Comment */ .highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */ .highlight
#!/bin/sh

. ./setup.sh

prepare_tests "Check content on diff page"

run_test 'generate 
trash/tmp' run_test 'find blob link' 'grep -e "<a href=./foo/tree/file-5?id=" trash/tmp' run_test 'find added file' 'grep -e "new file mode 100644" trash/tmp' run_test 'find hunk header' ' grep -e "<div class=.hunk.>@@ -0,0 +1 @@</div>" trash/tmp ' run_test 'find added line' ' grep -e "<div class=.add.>+5</div>" trash/tmp ' tests_done