summary refs log tree commit diff
path: root/www/git.causal.agency/cgit
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-01-20 13:33:12 -0500
committerJune McEnroe <june@causal.agency>2021-01-20 13:33:12 -0500
commite405e4589d81cfc30f6cf0b4304f744c7f6e972d (patch)
tree6f4b277790b854bfe3a67e17c0d6802db8d5ee77 /www/git.causal.agency/cgit
parentAvoid matching ':' in make tags (diff)
downloadsrc-e405e4589d81cfc30f6cf0b4304f744c7f6e972d.tar.gz
src-e405e4589d81cfc30f6cf0b4304f744c7f6e972d.zip
Fix tests for diff spans
Diffstat (limited to 'www/git.causal.agency/cgit')
-rwxr-xr-xwww/git.causal.agency/cgit/tests/t0105-commit.sh4
-rwxr-xr-xwww/git.causal.agency/cgit/tests/t0106-diff.sh4
2 files changed, 4 insertions, 4 deletions
diff --git a/www/git.causal.agency/cgit/tests/t0105-commit.sh b/www/git.causal.agency/cgit/tests/t0105-commit.sh
index 9e34abd2..d5ff96c8 100755
--- a/www/git.causal.agency/cgit/tests/t0105-commit.sh
+++ b/www/git.causal.agency/cgit/tests/t0105-commit.sh
@@ -29,8 +29,8 @@ test_expect_success 'root commit contains diffstat' '
 '
 
 test_expect_success 'root commit contains diff' '
-	grep ">diff --git a/file-1 b/file-1<" tmp &&
-	grep "<div class=.add.>+1</div>" tmp
+	grep ">diff --git a/file-1 b/file-1" tmp &&
+	grep "<span class=.add.>+1</span>" tmp
 '
 
 test_done
diff --git a/www/git.causal.agency/cgit/tests/t0106-diff.sh b/www/git.causal.agency/cgit/tests/t0106-diff.sh
index 82b645ec..62a0a74a 100755
--- a/www/git.causal.agency/cgit/tests/t0106-diff.sh
+++ b/www/git.causal.agency/cgit/tests/t0106-diff.sh
@@ -9,11 +9,11 @@ test_expect_success 'find blob link' 'grep "<a href=./foo/tree/file-5?id=" tmp'
 test_expect_success 'find added file' 'grep "new file mode 100644" tmp'
 
 test_expect_success 'find hunk header' '
-	grep "<div class=.hunk.>@@ -0,0 +1 @@</div>" tmp
+	grep "<span class=.hunk.>@@ -0,0 +1 @@</span>" tmp
 '
 
 test_expect_success 'find added line' '
-	grep "<div class=.add.>+5</div>" tmp
+	grep "<span class=.add.>+5</span>" tmp
 '
 
 test_done