Diff options
authorBryce Kwon <bryce@brycekwon.com>
committerBryce Kwon <bryce@brycekwon.com>
commit
parent
tree
download
Tighten the checks that match stray text
Every page holds foo in its footer element, the foo+bar row holds bar, the branch switcher holds master, and commit 1 and file-1 also match commits 10 to 19 and file-10 to file-19. A search page repeats its term in the search box. So these checks passed on pages that lacked what they look for, and each now matches the link itself.
Diffstat (limited to 'tests/t0204-limits.sh')
-rwxr-xr-xtests/t0204-limits.sh2
1 file changed, 1 insertion, 1 deletion
diff --git a/tests/t0204-limits.sh b/tests/t0204-limits.sh
index 2a8bb20..e6d69bd 100755
--- a/tests/t0204-limits.sh
+++ b/tests/t0204-limits.sh
@@ -64,7 +64,7 @@ test_expect_success 'an enormous query is clamped, not rejected' '
test_expect_success 'an ordinary query still filters the index' '
cgit_query "q=foo" >tmp &&
- grep "foo" tmp &&
+ grep ">foo</a>" tmp &&
! grep ">bar<" tmp
'