Diffstat (limited to 'tests/t0106-diff.sh')
| -rwxr-xr-x | tests/t0106-diff.sh | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/tests/t0106-diff.sh b/tests/t0106-diff.sh index 1100596..e4751e9 100755 --- a/tests/t0106-diff.sh +++ b/tests/t0106-diff.sh @@ -45,15 +45,6 @@ test_expect_success 'ref picker: auto-submit on change' ' grep "onchange=.this.form.submit()." tmp ' -test_expect_success 'flip link present' ' - grep "<a title=.swap from and to. class=.button. href=./foo/diff/?" tmp -' - -test_expect_success 'flip link swaps the default refs' ' - old=$(git --git-dir="$PWD/repos/foo/.git" rev-parse master~1) && - grep "/foo/diff/?id=$old&id2=master" tmp -' - test_expect_success 'compare two refs: foo/diff?id=master&id2=HEAD' ' cgit_query "url=foo/diff&id=master&id2=HEAD" >tmp ' @@ -86,16 +77,4 @@ test_expect_success 'diff with HEAD and root shows content' ' grep "diffstat" tmp ' -test_expect_success 'flip link swaps explicit refs' ' - cgit_query "url=foo/diff&id=master&id2=HEAD" >tmp && - new=$(git --git-dir="$PWD/repos/foo/.git" rev-parse HEAD) && - grep "/foo/diff/?id=$new&id2=master" tmp -' - -test_expect_success 'flip link omits id for a diff against a root commit' ' - root=$(git --git-dir="$PWD/repos/foo/.git" rev-list --max-parents=0 HEAD) && - cgit_query "url=foo/diff&id=$root" >tmp && - grep "href=./foo/diff/?id2=$root." tmp -' - test_done |