Diff options
authorBryce Kwon <bryce@brycekwon.com>
committerBryce Kwon <bryce@brycekwon.com>
commit
parent
tree
download
Leave the escape hook check to the tree tests
t0104 checks the same span, and what it holds, on the tree and blame pages, and t0502 checks it on a highlighted page.
Diffstat (limited to 'tests/t0005-markup.sh')
-rwxr-xr-xtests/t0005-markup.sh15
1 file changed, 4 insertions, 11 deletions
diff --git a/tests/t0005-markup.sh b/tests/t0005-markup.sh
index d8a8d9f..60a9990 100755
--- a/tests/t0005-markup.sh
+++ b/tests/t0005-markup.sh
@@ -177,17 +177,15 @@ test_expect_success 'a line range scrolls where a single line does' '
grep "first.scrollIntoView();" "$TEST_OUTPUT_DIRECTORY/../assets/cgit.js"
'
-# The rest of the hooks need a tag, a symlink, a submodule, a trailer, a lone
-# carriage return, clone urls, an empty repository and a second page of
-# repositories, so they get a commit and a config of their own after the checks
-# above have read the first ones.
+# The rest of the hooks need a tag, a symlink, a submodule, a trailer, clone
+# urls, an empty repository and a second page of repositories, so they get a
+# commit and a config of their own after the checks above have read the first
+# ones.
test_expect_success 'set up the remaining kinds of entry' '
(
cd repos/hooks &&
git tag -a -m "first release" v1 &&
test_ln_s_add file-1 link &&
- printf "a\\rb\\n" >cr.txt &&
- git add cr.txt &&
git update-index --add --cacheinfo "160000,$(git rev-parse HEAD),sub" &&
git commit -m "more kinds of entry" -m "Fixes: $(git rev-parse --short HEAD)"
) &&
@@ -222,11 +220,6 @@ test_expect_success 'the refs, summary and tree name every section and row' '
grep "<tr class=.mod.>" tmp
'
-test_expect_success 'a character the browser would break a line at is an escape' '
- more "hooks/tree/cr.txt" >tmp &&
- grep "a<span class=.escape.>" tmp
-'
-
test_expect_success 'the commit page has its trailer table and diffstat' '
more "hooks/commit/" >tmp &&
grep "<table class=.commit-trailers.>" tmp &&