##// END OF EJS Templates
tests: remove unneeded -d flags...
tests: remove unneeded -d flags Many tests fixed the commit date of their changesets at '1000000 0' or similar. However testing with "Mon Jan 12 13:46:40 1970 +0000" is not better than testing with "Thu Jan 01 00:00:00 1970 +0000", which is the default run-tests.py installs. Removing the unnecessary flag removes some clutter and will hopefully make it clearer what the tests are really trying to test. Some tests did not even change their output when the dates were changed, in which case the -d flag was truly irrelevant. Dates used in sequence (such as '0 0', '1 0', etc...) were left alone since they may make the test easier to understand.

File last commit:

r9842:d3dbdca9 default
r12156:4c94b6d0 default
Show More
test-hgweb.out
367 lines | 8.9 KiB | text/plain | TextLexer
Brendan Cully
hgweb: simple tests
r3942 adding da/foo
adding foo
% manifest
200 Script output follows
drwxr-xr-x da
-rw-r--r-- 4 foo
200 Script output follows
-rw-r--r-- 4 foo
Bryan O'Sullivan
hgweb: return meaningful HTTP status codes instead of nonsense
r5561 % plain file
200 Script output follows
foo
% should give a 404 - static file that does not exist
404 Not Found
Benoit Allard
coal/paper: switch to XHTML 1.1
r7725 <!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">
Bryan O'Sullivan
hgweb: return meaningful HTTP status codes instead of nonsense
r5561 <head>
Benoit Allard
coal/paper: switch to XHTML 1.1
r7725 <link rel="icon" href="/static/hgicon.png" type="image/png" />
Bryan O'Sullivan
hgweb: return meaningful HTTP status codes instead of nonsense
r5561 <meta name="robots" content="index, nofollow" />
Matt Mackall
hgweb: update tests for paper style...
r7339 <link rel="stylesheet" href="/static/style-paper.css" type="text/css" />
Bryan O'Sullivan
hgweb: return meaningful HTTP status codes instead of nonsense
r5561
Matt Mackall
tests: fix test-hgweb to not leak directory name
r7341 <title>test: error</title>
Bryan O'Sullivan
hgweb: return meaningful HTTP status codes instead of nonsense
r5561 </head>
<body>
Matt Mackall
hgweb: update tests for paper style...
r7339 <div class="container">
<div class="menu">
<div class="logo">
Dirkjan Ochtman
change wiki/bts URLs to point to new hostname
r8936 <a href="http://mercurial.selenic.com/">
Rocco Rutte
coal/paper: Turn <img> into <img/> where missing
r7909 <img src="/static/hglogo.png" width=75 height=90 border=0 alt="mercurial" /></a>
Matt Mackall
hgweb: update tests for paper style...
r7339 </div>
<ul>
Dirkjan Ochtman
coal/paper: link to shortlog instead of log from error pages
r7412 <li><a href="/shortlog">log</a></li>
Matt Mackall
hgweb: update tests for paper style...
r7339 <li><a href="/graph">graph</a></li>
<li><a href="/tags">tags</a></li>
Sune Foldager
paper/coal: add branches page
r8353 <li><a href="/branches">branches</a></li>
Matt Mackall
hgweb: update tests for paper style...
r7339 </ul>
</div>
Bryan O'Sullivan
hgweb: return meaningful HTTP status codes instead of nonsense
r5561
Matt Mackall
hgweb: update tests for paper style...
r7339 <div class="main">
Matt Mackall
tests: fix test-hgweb to not leak directory name
r7341 <h2><a href="/">test</a></h2>
Matt Mackall
hgweb: update tests for paper style...
r7339 <h3>error</h3>
<form class="search" action="/log">
<p><input name="rev" id="search1" type="text" size="30"></p>
Benoit Allard
coal/paper: switch to XHTML 1.1
r7725 <div id="hint">find changesets by author, revision,
files, or words in the commit message</div>
Matt Mackall
hgweb: update tests for paper style...
r7339 </form>
<div class="description">
Bryan O'Sullivan
hgweb: return meaningful HTTP status codes instead of nonsense
r5561 <p>
Jesse Glick
Issue #880: Simple misspelling ('occured') in web error message.
r5837 An error occurred while processing your request:
Bryan O'Sullivan
hgweb: return meaningful HTTP status codes instead of nonsense
r5561 </p>
<p>
Not Found
</p>
Matt Mackall
hgweb: update tests for paper style...
r7339 </div>
</div>
</div>
Bryan O'Sullivan
hgweb: return meaningful HTTP status codes instead of nonsense
r5561
</body>
</html>
% should give a 404 - bad revision
404 Not Found
error: revision not found: spam
% should give a 400 - bad command
Bryan O'Sullivan
hgweb: account for Python 2.4 in one test
r5564 400
Bryan O'Sullivan
hgweb: return meaningful HTTP status codes instead of nonsense
r5561
Dirkjan Ochtman
hgweb: better error messages
r6368 error: no such method: spam
Bryan O'Sullivan
hgweb: return meaningful HTTP status codes instead of nonsense
r5561 % should give a 404 - file does not exist
404 Not Found
Dirkjan Ochtman
hgweb: better error messages
r6368 error: bork@2ef0ac749a14: not found in manifest
404 Not Found
Benoit Allard
coal/paper: switch to XHTML 1.1
r7725 <!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">
Dirkjan Ochtman
hgweb: better error messages
r6368 <head>
Benoit Allard
coal/paper: switch to XHTML 1.1
r7725 <link rel="icon" href="/static/hgicon.png" type="image/png" />
Dirkjan Ochtman
hgweb: better error messages
r6368 <meta name="robots" content="index, nofollow" />
Matt Mackall
hgweb: update tests for paper style...
r7339 <link rel="stylesheet" href="/static/style-paper.css" type="text/css" />
Dirkjan Ochtman
hgweb: better error messages
r6368
Matt Mackall
tests: fix test-hgweb to not leak directory name
r7341 <title>test: error</title>
Dirkjan Ochtman
hgweb: better error messages
r6368 </head>
<body>
Matt Mackall
hgweb: update tests for paper style...
r7339 <div class="container">
<div class="menu">
<div class="logo">
Dirkjan Ochtman
change wiki/bts URLs to point to new hostname
r8936 <a href="http://mercurial.selenic.com/">
Rocco Rutte
coal/paper: Turn <img> into <img/> where missing
r7909 <img src="/static/hglogo.png" width=75 height=90 border=0 alt="mercurial" /></a>
Matt Mackall
hgweb: update tests for paper style...
r7339 </div>
<ul>
Dirkjan Ochtman
coal/paper: link to shortlog instead of log from error pages
r7412 <li><a href="/shortlog">log</a></li>
Matt Mackall
hgweb: update tests for paper style...
r7339 <li><a href="/graph">graph</a></li>
<li><a href="/tags">tags</a></li>
Sune Foldager
paper/coal: add branches page
r8353 <li><a href="/branches">branches</a></li>
Matt Mackall
hgweb: update tests for paper style...
r7339 </ul>
</div>
Dirkjan Ochtman
hgweb: better error messages
r6368
Matt Mackall
hgweb: update tests for paper style...
r7339 <div class="main">
Matt Mackall
tests: fix test-hgweb to not leak directory name
r7341 <h2><a href="/">test</a></h2>
Matt Mackall
hgweb: update tests for paper style...
r7339 <h3>error</h3>
<form class="search" action="/log">
<p><input name="rev" id="search1" type="text" size="30"></p>
Benoit Allard
coal/paper: switch to XHTML 1.1
r7725 <div id="hint">find changesets by author, revision,
files, or words in the commit message</div>
Matt Mackall
hgweb: update tests for paper style...
r7339 </form>
<div class="description">
Dirkjan Ochtman
hgweb: better error messages
r6368 <p>
An error occurred while processing your request:
</p>
<p>
bork@2ef0ac749a14: not found in manifest
</p>
Matt Mackall
hgweb: update tests for paper style...
r7339 </div>
</div>
</div>
Dirkjan Ochtman
hgweb: better error messages
r6368
</body>
</html>
404 Not Found
error: bork@2ef0ac749a14: not found in manifest
Dirkjan Ochtman
hgweb: don't choke when an inexistent style is requested (issue1901)
r9842 % try bad style
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>test: 2ef0ac749a14 /</title>
</head>
<body>
<div class="container">
<div class="menu">
<div class="logo">
<a href="http://mercurial.selenic.com/">
<img src="/static/hglogo.png" alt="mercurial" /></a>
</div>
<ul>
<li><a href="/shortlog/2ef0ac749a14">log</a></li>
<li><a href="/graph/2ef0ac749a14">graph</a></li>
<li><a href="/tags">tags</a></li>
<li><a href="/branches">branches</a></li>
</ul>
<ul>
<li><a href="/rev/2ef0ac749a14">changeset</a></li>
<li class="active">browse</li>
</ul>
<ul>
</ul>
</div>
<div class="main">
<h2><a href="/">test</a></h2>
<h3>directory / @ 0:2ef0ac749a14 <span class="tag">tip</span> </h3>
<form class="search" action="/log">
<p><input name="rev" id="search1" type="text" size="30" /></p>
<div id="hint">find changesets by author, revision,
files, or words in the commit message</div>
</form>
<table class="bigtable">
<tr>
<th class="name">name</th>
<th class="size">size</th>
<th class="permissions">permissions</th>
</tr>
<tr class="fileline parity0">
<td class="name"><a href="/file/2ef0ac749a14/">[up]</a></td>
<td class="size"></td>
<td class="permissions">drwxr-xr-x</td>
</tr>
<tr class="fileline parity1">
<td class="name">
<a href="/file/2ef0ac749a14/da">
<img src="/static/coal-folder.png" alt="dir."/> da/
</a>
<a href="/file/2ef0ac749a14/da/">
</a>
</td>
<td class="size"></td>
<td class="permissions">drwxr-xr-x</td>
</tr>
<tr class="fileline parity0">
<td class="filename">
<a href="/file/2ef0ac749a14/foo">
<img src="/static/coal-file.png" alt="file"/> foo
</a>
</td>
<td class="size">4</td>
<td class="permissions">-rw-r--r--</td>
</tr>
</table>
</div>
</div>
</body>
</html>
Mirko Friedenhagen
server: append to logfiles
r5690 % stop and restart
Dirkjan Ochtman
hgweb: don't choke when an inexistent style is requested (issue1901)
r9842 10 log lines written
Bryan O'Sullivan
hgweb: return meaningful HTTP status codes instead of nonsense
r5561 % static file
200 Script output follows
body { font-family: sans-serif; font-size: 12px; margin:0px; border:solid #d9d8d1; border-width:1px; margin:10px; }
a { color:#0000cc; }
a:hover, a:visited, a:active { color:#880000; }
div.page_header { height:25px; padding:8px; font-size:18px; font-weight:bold; background-color:#d9d8d1; }
div.page_header a:visited { color:#0000cc; }
div.page_header a:hover { color:#880000; }
div.page_nav { padding:8px; }
div.page_nav a:visited { color:#0000cc; }
div.page_path { padding:8px; border:solid #d9d8d1; border-width:0px 0px 1px}
div.page_footer { padding:4px 8px; background-color: #d9d8d1; }
div.page_footer_text { float:left; color:#555555; font-style:italic; }
div.page_body { padding:8px; }
div.title, a.title {
display:block; padding:6px 8px;
font-weight:bold; background-color:#edece6; text-decoration:none; color:#000000;
}
a.title:hover { background-color: #d9d8d1; }
div.title_text { padding:6px 0px; border: solid #d9d8d1; border-width:0px 0px 1px; }
div.log_body { padding:8px 8px 8px 150px; }
.age { white-space:nowrap; }
span.age { position:relative; float:left; width:142px; font-style:italic; }
div.log_link {
padding:0px 8px;
font-size:10px; font-family:sans-serif; font-style:normal;
position:relative; float:left; width:136px;
}
div.list_head { padding:6px 8px 4px; border:solid #d9d8d1; border-width:1px 0px 0px; font-style:italic; }
a.list { text-decoration:none; color:#000000; }
a.list:hover { text-decoration:underline; color:#880000; }
table { padding:8px 4px; }
th { padding:2px 5px; font-size:12px; text-align:left; }
tr.light:hover, .parity0:hover { background-color:#edece6; }
tr.dark, .parity1 { background-color:#f6f6f0; }
tr.dark:hover, .parity1:hover { background-color:#edece6; }
td { padding:2px 5px; font-size:12px; vertical-align:top; }
td.link { padding:2px 5px; font-family:sans-serif; font-size:10px; }
Peter Arrenbrecht
hgweb: fix test results missed by 6218:345a23eca8f6
r6219 td.indexlinks { white-space: nowrap; }
td.indexlinks a {
padding: 2px 5px; line-height: 10px;
border: 1px solid;
color: #ffffff; background-color: #7777bb;
border-color: #aaaadd #333366 #333366 #aaaadd;
font-weight: bold; text-align: center; text-decoration: none;
font-size: 10px;
}
td.indexlinks a:hover { background-color: #6666aa; }
Bryan O'Sullivan
hgweb: return meaningful HTTP status codes instead of nonsense
r5561 div.pre { font-family:monospace; font-size:12px; white-space:pre; }
div.diff_info { font-family:monospace; color:#000099; background-color:#edece6; font-style:italic; }
div.index_include { border:solid #d9d8d1; border-width:0px 0px 1px; padding:12px 8px; }
div.search { margin:4px 8px; position:absolute; top:56px; right:12px }
.linenr { color:#999999; text-decoration:none }
Peter Arrenbrecht
hgweb: fix test results missed by 6218:345a23eca8f6
r6219 div.rss_logo { float: right; white-space: nowrap; }
div.rss_logo a {
padding:3px 6px; line-height:10px;
Bryan O'Sullivan
hgweb: return meaningful HTTP status codes instead of nonsense
r5561 border:1px solid; border-color:#fcc7a5 #7d3302 #3e1a01 #ff954e;
color:#ffffff; background-color:#ff6600;
font-weight:bold; font-family:sans-serif; font-size:10px;
text-align:center; text-decoration:none;
}
Peter Arrenbrecht
hgweb: fix test results missed by 6218:345a23eca8f6
r6219 div.rss_logo a:hover { background-color:#ee5500; }
Bryan O'Sullivan
hgweb: return meaningful HTTP status codes instead of nonsense
r5561 pre { margin: 0; }
span.logtags span {
padding: 0px 4px;
font-size: 10px;
font-weight: normal;
border: 1px solid;
background-color: #ffaaff;
border-color: #ffccff #ff00ee #ff00ee #ffccff;
}
span.logtags span.tagtag {
background-color: #ffffaa;
border-color: #ffffcc #ffee00 #ffee00 #ffffcc;
}
span.logtags span.branchtag {
background-color: #aaffaa;
border-color: #ccffcc #00cc33 #00cc33 #ccffcc;
}
Alexis S. L. Carvalho
update output of test-hgweb
r6252 span.logtags span.inbranchtag {
background-color: #d5dde6;
border-color: #e3ecf4 #9398f4 #9398f4 #e3ecf4;
}
Dirkjan Ochtman
tests: fix test breakage from graph template changes
r6695
/* Graph */
div#wrapper {
position: relative;
margin: 0;
padding: 0;
Dirkjan Ochtman
fix dumb test failure introduced in 855851eae70f
r6731 margin-top: 3px;
Dirkjan Ochtman
tests: fix test breakage from graph template changes
r6695 }
canvas {
position: absolute;
z-index: 5;
top: -0.9em;
margin: 0;
}
ul#nodebgs {
list-style: none inside none;
padding: 0;
margin: 0;
top: -0.7em;
}
Thomas Arendsen Hein
Fix test output for updated gitdiffs help and web template cleanups
r7330
Dirkjan Ochtman
tests: fix test breakage from graph template changes
r6695 ul#graphnodes li, ul#nodebgs li {
height: 39px;
}
ul#graphnodes {
position: absolute;
z-index: 10;
top: -0.8em;
list-style: none inside none;
padding: 0;
}
ul#graphnodes li .info {
display: block;
font-size: 100%;
position: relative;
top: -3px;
font-style: italic;
}
Dirkjan Ochtman
better error reporting for hg serve errors in tests
r5924 % errors