Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
mercurial-devel
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
This instance will be upgraded to Heptapod 17.9.0 final on 2025-04-04 between 14:00 and 15:00 UTC+2
Show more breadcrumbs
mercurial
mercurial-devel
Commits
d895158f
Commit
d895158f
authored
15 years ago
by
Dirkjan Ochtman
Browse files
Options
Downloads
Patches
Plain Diff
tests: add tests for styled hgwebdir pages
parent
25266fe9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/test-hgwebdir
+4
-0
4 additions, 0 deletions
tests/test-hgwebdir
tests/test-hgwebdir.out
+88
-0
88 additions, 0 deletions
tests/test-hgwebdir.out
with
92 additions
and
0 deletions
tests/test-hgwebdir
+
4
−
0
View file @
d895158f
...
...
@@ -64,5 +64,7 @@
echo
% should succeed, slashy names
"
$TESTDIR
/get-with-headers.py"
localhost:
$HGPORT1
'/?style=raw'
"
$TESTDIR
/get-with-headers.py"
localhost:
$HGPORT1
'/?style=paper'
\
|
sed
-r
"s/[0-9]+ seconds? ago/seconds ago/"
"
$TESTDIR
/get-with-headers.py"
localhost:
$HGPORT1
'/t?style=raw'
"
$TESTDIR
/get-with-headers.py"
localhost:
$HGPORT1
'/t/?style=raw'
...
...
@@ -67,5 +69,7 @@
"
$TESTDIR
/get-with-headers.py"
localhost:
$HGPORT1
'/t?style=raw'
"
$TESTDIR
/get-with-headers.py"
localhost:
$HGPORT1
'/t/?style=raw'
"
$TESTDIR
/get-with-headers.py"
localhost:
$HGPORT1
'/t/?style=paper'
\
|
sed
-r
"s/[0-9]+ seconds? ago/seconds ago/"
"
$TESTDIR
/get-with-headers.py"
localhost:
$HGPORT1
'/t/a?style=atom'
\
|
sed
"s/http:
\/\/
[^/]*
\/
/http:
\/\/
127.0.0.1
\/
/"
"
$TESTDIR
/get-with-headers.py"
localhost:
$HGPORT1
'/t/a/?style=atom'
\
...
...
This diff is collapsed.
Click to expand it.
tests/test-hgwebdir.out
+
88
−
0
View file @
d895158f
...
...
@@ -43,6 +43,55 @@
200 Script output follows
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html
xmlns=
"http://www.w3.org/1999/xhtml"
xml:lang=
"en-US"
>
<head>
<link
rel=
"icon"
href=
"/static/hgicon.png"
type=
"image/png"
/>
<meta
name=
"robots"
content=
"index, nofollow"
/>
<link
rel=
"stylesheet"
href=
"/static/style-paper.css"
type=
"text/css"
/>
<title>
Mercurial repositories index
</title>
</head>
<body>
<div
class=
"container"
>
<div
class=
"menu"
>
<a
href=
"http://www.selenic.com/mercurial/"
>
<img
src=
"/static/hglogo.png"
width=
75
height=
90
border=
0
alt=
"mercurial"
/></a>
</div>
<div
class=
"main"
>
<h2>
Mercurial Repositories
</h2>
<table
class=
"bigtable"
>
<tr>
<th><a
href=
"?sort=-name"
>
Name
</a></th>
<th><a
href=
"?sort=description"
>
Description
</a></th>
<th><a
href=
"?sort=contact"
>
Contact
</a></th>
<th><a
href=
"?sort=lastchange"
>
Last change
</a></th>
<th>
</th>
</tr>
<tr
class=
"parity0"
><td><a
href=
"/b/?style=paper"
>
b
</a></td><td>
unknown
</td><td>
Foo Bar <foo.bar@example.com>
</td><td
class=
"age"
>
seconds ago
</td><td
class=
"indexlinks"
></td></tr>
<tr
class=
"parity1"
><td><a
href=
"/coll/a/?style=paper"
>
coll/a
</a></td><td>
unknown
</td><td>
Foo Bar <foo.bar@example.com>
</td><td
class=
"age"
>
seconds ago
</td><td
class=
"indexlinks"
></td></tr>
<tr
class=
"parity0"
><td><a
href=
"/coll/a/.hg/patches/?style=paper"
>
coll/a/.hg/patches
</a></td><td>
unknown
</td><td>
Foo Bar <foo.bar@example.com>
</td><td
class=
"age"
>
seconds ago
</td><td
class=
"indexlinks"
></td></tr>
<tr
class=
"parity1"
><td><a
href=
"/coll/b/?style=paper"
>
coll/b
</a></td><td>
unknown
</td><td>
Foo Bar <foo.bar@example.com>
</td><td
class=
"age"
>
seconds ago
</td><td
class=
"indexlinks"
></td></tr>
<tr
class=
"parity0"
><td><a
href=
"/coll/c/?style=paper"
>
coll/c
</a></td><td>
unknown
</td><td>
Foo Bar <foo.bar@example.com>
</td><td
class=
"age"
>
seconds ago
</td><td
class=
"indexlinks"
></td></tr>
<tr
class=
"parity1"
><td><a
href=
"/rcoll/a/?style=paper"
>
rcoll/a
</a></td><td>
unknown
</td><td>
Foo Bar <foo.bar@example.com>
</td><td
class=
"age"
>
seconds ago
</td><td
class=
"indexlinks"
></td></tr>
<tr
class=
"parity0"
><td><a
href=
"/rcoll/a/.hg/patches/?style=paper"
>
rcoll/a/.hg/patches
</a></td><td>
unknown
</td><td>
Foo Bar <foo.bar@example.com>
</td><td
class=
"age"
>
seconds ago
</td><td
class=
"indexlinks"
></td></tr>
<tr
class=
"parity1"
><td><a
href=
"/rcoll/b/?style=paper"
>
rcoll/b
</a></td><td>
unknown
</td><td>
Foo Bar <foo.bar@example.com>
</td><td
class=
"age"
>
seconds ago
</td><td
class=
"indexlinks"
></td></tr>
<tr
class=
"parity0"
><td><a
href=
"/rcoll/b/d/?style=paper"
>
rcoll/b/d
</a></td><td>
unknown
</td><td>
Foo Bar <foo.bar@example.com>
</td><td
class=
"age"
>
seconds ago
</td><td
class=
"indexlinks"
></td></tr>
<tr
class=
"parity1"
><td><a
href=
"/rcoll/c/?style=paper"
>
rcoll/c
</a></td><td>
unknown
</td><td>
Foo Bar <foo.bar@example.com>
</td><td
class=
"age"
>
seconds ago
</td><td
class=
"indexlinks"
></td></tr>
<tr
class=
"parity0"
><td><a
href=
"/t/a/?style=paper"
>
t/a
</a></td><td>
unknown
</td><td>
Foo Bar <foo.bar@example.com>
</td><td
class=
"age"
>
seconds ago
</td><td
class=
"indexlinks"
></td></tr>
</table>
</div>
</div>
</body>
</html>
200 Script output follows
/t/a/
...
...
@@ -53,6 +102,45 @@
200 Script output follows
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html
xmlns=
"http://www.w3.org/1999/xhtml"
xml:lang=
"en-US"
>
<head>
<link
rel=
"icon"
href=
"/static/hgicon.png"
type=
"image/png"
/>
<meta
name=
"robots"
content=
"index, nofollow"
/>
<link
rel=
"stylesheet"
href=
"/static/style-paper.css"
type=
"text/css"
/>
<title>
Mercurial repositories index
</title>
</head>
<body>
<div
class=
"container"
>
<div
class=
"menu"
>
<a
href=
"http://www.selenic.com/mercurial/"
>
<img
src=
"/static/hglogo.png"
width=
75
height=
90
border=
0
alt=
"mercurial"
/></a>
</div>
<div
class=
"main"
>
<h2>
Mercurial Repositories
</h2>
<table
class=
"bigtable"
>
<tr>
<th><a
href=
"?sort=-name"
>
Name
</a></th>
<th><a
href=
"?sort=description"
>
Description
</a></th>
<th><a
href=
"?sort=contact"
>
Contact
</a></th>
<th><a
href=
"?sort=lastchange"
>
Last change
</a></th>
<th>
</th>
</tr>
<tr
class=
"parity0"
><td><a
href=
"/t/a/?style=paper"
>
a
</a></td><td>
unknown
</td><td>
Foo Bar <foo.bar@example.com>
</td><td
class=
"age"
>
seconds ago
</td><td
class=
"indexlinks"
></td></tr>
</table>
</div>
</div>
</body>
</html>
200 Script output follows
<?xml version="1.0" encoding="ascii"?>
<feed
xmlns=
"http://127.0.0.1/2005/Atom"
>
<!-- Changelog -->
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment