summaryrefslogtreecommitdiffstatshomepage
path: root/tests/t0103-log.sh
blob: bdf1435a16fe132e70a89fce6ee16f8182f03ba8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh

test_description='Check content on log page'
. ./setup.sh

test_expect_success 'generate foo/log' 'cgit_url "foo/log" >tmp'
test_expect_success 'find commit 1' 'grep "commit 1" tmp'
test_expect_success 'find commit 5' 'grep "commit 5" tmp'

test_expect_success 'generate bar/log' 'cgit_url "bar/log" >tmp'
test_expect_success 'find commit 1' 'grep "commit 1" tmp'
test_expect_success 'find commit 50' 'grep "commit 50" tmp'

test_expect_success 'generate "with%20space/log?qt=grep&q=commit+1"' '
	cgit_url "with+space/log&qt=grep&q=commit+1" >tmp
'
test_expect_success 'find commit 1' 'grep "commit 1" tmp'
test_expect_success 'find link with %20 in path' 'grep "/with%20space/log/?qt=grep" tmp'
test_expect_success 'find link with + in arg' 'grep "/log/?qt=grep&q=commit+1" tmp'
test_expect_success 'no links with space in path' '! grep "href=./with space/" tmp'
test_expect_success 'no links with space in arg' '! grep "q=commit 1" tmp'
test_expect_success 'commit 2 is not visible' '! grep "commit 2" tmp'

test_done
Number.Integer.Long */
body {
	font-family: arial;
	font-size: normal;
	background: white;
	padding: 0em;
	margin: 0.5em;
}


h2 {
	font-size: normal;
	font-weight: bold;
	margin-bottom: 0.1em;
}

a {
	color: blue;
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

table.list {
	border: solid 1px black;
	border-collapse: collapse;
	border: solid 1px #aaa;
}
table.list tr {
	background: white;
}
table.list tr:hover {
	background: #eee;
}
table.list th {
	font-weight: bold;
	background: #ddd;
	border-bottom: solid 1px #aaa;
	padding: 0.1em 0.5em 0.1em 0.5em;
	vertical-align: baseline;
}
table.list td {
	border: none;
	padding: 0.1em 0.5em 0.1em 0.5em;
}
img {
	border: none;
}


div#header {
	background-color: #ddd;
	padding: 0.25em 0.25em 0.25em 0.5em;
	font-size: 150%;
	font-weight: bold;
	border: solid 1px #aaa;
	vertical-align: middle;
}
div#header img#logo {
	float: right;
}

div#content {
	margin: 0.5em 0.5em;
}

div#blob {
	border: solid 1px black;
}

div.error {
	color: red;
	font-weight: bold;
	margin: 1em 2em;
}
div.ls-dir a {
	font-weight: bold;
}
th.filesize, td.filesize {
	text-align: right;
}
th.filemode, td.filemode {
	text-align: center;
}

td.blob {
	white-space: pre;
	font-family: courier;
	font-size: 100%;
	background-color: white;
}

table.log td {
	white-space: nowrap;
}

table.commit-info {
	border-collapse: collapse;
	margin-top: 1em;
	
}
table.commit-info th {
	text-align: left;
	font-weight: normal;
	padding: 0.1em 1em 0.1em 0.1em;
}
table.commit-info td {
	font-weight: normal;
	padding: 0.1em 1em 0.1em 0.1em;
}
div.commit-subject {
	font-weight: bold;
	font-size: 110%;
	margin: 1em 0em 1em;
}
div.commit-msg {
	white-space: pre;
	font-family: courier;
	font-size: 100%;
}
.sha1 {
	font-family: courier;
	font-size: 90%;
}
.left {
	text-align: left;
}
.right {
	text-align: right;
}