about summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-01-20 13:33:12 -0500
committerJune McEnroe <june@causal.agency>2022-02-13 11:56:23 -0500
commitf9c417f24527d38a61338f3757fd1edb53d7fc5c (patch)
treee4f63b079a0395ada75cbaf54b71d8695ed609ab /tests
parentUse <pre> and <span> to print diffs (diff)
downloadcgit-pink-f9c417f24527d38a61338f3757fd1edb53d7fc5c.tar.gz
cgit-pink-f9c417f24527d38a61338f3757fd1edb53d7fc5c.zip
Fix tests for diff spans
Diffstat (limited to 'tests')
-rwxr-xr-xtests/t0105-commit.sh4
-rwxr-xr-xtests/t0106-diff.sh4
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/t0105-commit.sh b/tests/t0105-commit.sh
index 9e34abd..d5ff96c 100755
--- a/tests/t0105-commit.sh
+++ b/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/tests/t0106-diff.sh b/tests/t0106-diff.sh
index 82b645e..62a0a74 100755
--- a/tests/t0106-diff.sh
+++ b/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
t/state.c?h=1.0&id=13c061bee881d0e5dc5143fc196251cfc3da2c2a&follow=1'>Do not require RPL_ISUPPORT for stateReadyJune McEnroe 2019-10-26Implement graceful shutdownJune McEnroe 2019-10-26Require PASS before USERJune McEnroe 2019-10-26Track channel topicsJune McEnroe 2019-10-26Set AWAY when no clients are connectedJune McEnroe 2019-10-26Add flags to request TOPIC and NAMES on client connectJune McEnroe 2019-10-26OopsJune McEnroe 2019-10-26Disconnect client on unknown commandJune McEnroe 2019-10-26Allow reading sensitive information from filesJune McEnroe 2019-10-26Add rc scriptJune McEnroe 2019-10-25Add install and uninstall targetsJune McEnroe 2019-10-25Expand documentationJune McEnroe 2019-10-25Add AGPLv3 notice on client registrationJune McEnroe 2019-10-25Rename project pounceJune McEnroe