aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Jason A. Donenfeld <Jason@zx2c4.com>2012-10-18 00:17:48 (JST)
committerGravatar Jason A. Donenfeld <Jason@zx2c4.com>2012-10-18 00:18:35 (JST)
commit1cb8b494a5b83fdb87a2d9cd6282a05143661db1 (patch)
tree38e91893f23c6c469a324ca960ac21b2b2c3a0b1
parent792f813d342013124ce40142fef4afee3ff00df3 (diff)
downloadcgit-1cb8b494a5b83fdb87a2d9cd6282a05143661db1.zip
cgit-1cb8b494a5b83fdb87a2d9cd6282a05143661db1.tar.gz
tests: check for proper html entity
Since we're now properly writing ampersand literals as &amp; instead of as a plain &, we need to update the test accordingly. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rwxr-xr-xtests/t0103-log.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/t0103-log.sh b/tests/t0103-log.sh
index 75dd761..7fa6754 100755
--- a/tests/t0103-log.sh
+++ b/tests/t0103-log.sh
@@ -17,7 +17,7 @@ run_test 'generate "with%20space/log?qt=grep&q=commit+1"' '
17' 17'
18run_test 'find commit 1' 'grep -e "commit 1" trash/tmp' 18run_test 'find commit 1' 'grep -e "commit 1" trash/tmp'
19run_test 'find link with %20 in path' 'grep -e "/with%20space/log/?qt=grep" trash/tmp' 19run_test 'find link with %20 in path' 'grep -e "/with%20space/log/?qt=grep" trash/tmp'
20run_test 'find link with + in arg' 'grep -e "/log/?qt=grep&q=commit+1" trash/tmp' 20run_test 'find link with + in arg' 'grep -e "/log/?qt=grep&amp;q=commit+1" trash/tmp'
21run_test 'no links with space in path' '! grep -e "href=./with space/" trash/tmp' 21run_test 'no links with space in path' '! grep -e "href=./with space/" trash/tmp'
22run_test 'no links with space in arg' '! grep -e "q=commit 1" trash/tmp' 22run_test 'no links with space in arg' '! grep -e "q=commit 1" trash/tmp'
23run_test 'commit 2 is not visible' '! grep -e "commit 2" trash/tmp' 23run_test 'commit 2 is not visible' '! grep -e "commit 2" trash/tmp'