##// END OF EJS Templates
tests: fix hgweb template change
Matt Mackall -
r12359:55dc918c stable
parent child Browse files
Show More
@@ -1,367 +1,368
1 adding da/foo
1 adding da/foo
2 adding foo
2 adding foo
3 % manifest
3 % manifest
4 200 Script output follows
4 200 Script output follows
5
5
6
6
7 drwxr-xr-x da
7 drwxr-xr-x da
8 -rw-r--r-- 4 foo
8 -rw-r--r-- 4 foo
9
9
10
10
11 200 Script output follows
11 200 Script output follows
12
12
13
13
14 -rw-r--r-- 4 foo
14 -rw-r--r-- 4 foo
15
15
16
16
17 % plain file
17 % plain file
18 200 Script output follows
18 200 Script output follows
19
19
20 foo
20 foo
21 % should give a 404 - static file that does not exist
21 % should give a 404 - static file that does not exist
22 404 Not Found
22 404 Not Found
23
23
24 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
24 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
25 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">
25 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">
26 <head>
26 <head>
27 <link rel="icon" href="/static/hgicon.png" type="image/png" />
27 <link rel="icon" href="/static/hgicon.png" type="image/png" />
28 <meta name="robots" content="index, nofollow" />
28 <meta name="robots" content="index, nofollow" />
29 <link rel="stylesheet" href="/static/style-paper.css" type="text/css" />
29 <link rel="stylesheet" href="/static/style-paper.css" type="text/css" />
30
30
31 <title>test: error</title>
31 <title>test: error</title>
32 </head>
32 </head>
33 <body>
33 <body>
34
34
35 <div class="container">
35 <div class="container">
36 <div class="menu">
36 <div class="menu">
37 <div class="logo">
37 <div class="logo">
38 <a href="http://mercurial.selenic.com/">
38 <a href="http://mercurial.selenic.com/">
39 <img src="/static/hglogo.png" width=75 height=90 border=0 alt="mercurial" /></a>
39 <img src="/static/hglogo.png" width=75 height=90 border=0 alt="mercurial" /></a>
40 </div>
40 </div>
41 <ul>
41 <ul>
42 <li><a href="/shortlog">log</a></li>
42 <li><a href="/shortlog">log</a></li>
43 <li><a href="/graph">graph</a></li>
43 <li><a href="/graph">graph</a></li>
44 <li><a href="/tags">tags</a></li>
44 <li><a href="/tags">tags</a></li>
45 <li><a href="/branches">branches</a></li>
45 <li><a href="/branches">branches</a></li>
46 </ul>
46 </ul>
47 </div>
47 </div>
48
48
49 <div class="main">
49 <div class="main">
50
50
51 <h2><a href="/">test</a></h2>
51 <h2><a href="/">test</a></h2>
52 <h3>error</h3>
52 <h3>error</h3>
53
53
54 <form class="search" action="/log">
54 <form class="search" action="/log">
55
55
56 <p><input name="rev" id="search1" type="text" size="30"></p>
56 <p><input name="rev" id="search1" type="text" size="30"></p>
57 <div id="hint">find changesets by author, revision,
57 <div id="hint">find changesets by author, revision,
58 files, or words in the commit message</div>
58 files, or words in the commit message</div>
59 </form>
59 </form>
60
60
61 <div class="description">
61 <div class="description">
62 <p>
62 <p>
63 An error occurred while processing your request:
63 An error occurred while processing your request:
64 </p>
64 </p>
65 <p>
65 <p>
66 Not Found
66 Not Found
67 </p>
67 </p>
68 </div>
68 </div>
69 </div>
69 </div>
70 </div>
70 </div>
71
71
72
72
73
73
74 </body>
74 </body>
75 </html>
75 </html>
76
76
77 % should give a 404 - bad revision
77 % should give a 404 - bad revision
78 404 Not Found
78 404 Not Found
79
79
80
80
81 error: revision not found: spam
81 error: revision not found: spam
82 % should give a 400 - bad command
82 % should give a 400 - bad command
83 400
83 400
84
84
85
85
86 error: no such method: spam
86 error: no such method: spam
87 % should give a 404 - file does not exist
87 % should give a 404 - file does not exist
88 404 Not Found
88 404 Not Found
89
89
90
90
91 error: bork@2ef0ac749a14: not found in manifest
91 error: bork@2ef0ac749a14: not found in manifest
92 404 Not Found
92 404 Not Found
93
93
94 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
94 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
95 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">
95 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">
96 <head>
96 <head>
97 <link rel="icon" href="/static/hgicon.png" type="image/png" />
97 <link rel="icon" href="/static/hgicon.png" type="image/png" />
98 <meta name="robots" content="index, nofollow" />
98 <meta name="robots" content="index, nofollow" />
99 <link rel="stylesheet" href="/static/style-paper.css" type="text/css" />
99 <link rel="stylesheet" href="/static/style-paper.css" type="text/css" />
100
100
101 <title>test: error</title>
101 <title>test: error</title>
102 </head>
102 </head>
103 <body>
103 <body>
104
104
105 <div class="container">
105 <div class="container">
106 <div class="menu">
106 <div class="menu">
107 <div class="logo">
107 <div class="logo">
108 <a href="http://mercurial.selenic.com/">
108 <a href="http://mercurial.selenic.com/">
109 <img src="/static/hglogo.png" width=75 height=90 border=0 alt="mercurial" /></a>
109 <img src="/static/hglogo.png" width=75 height=90 border=0 alt="mercurial" /></a>
110 </div>
110 </div>
111 <ul>
111 <ul>
112 <li><a href="/shortlog">log</a></li>
112 <li><a href="/shortlog">log</a></li>
113 <li><a href="/graph">graph</a></li>
113 <li><a href="/graph">graph</a></li>
114 <li><a href="/tags">tags</a></li>
114 <li><a href="/tags">tags</a></li>
115 <li><a href="/branches">branches</a></li>
115 <li><a href="/branches">branches</a></li>
116 </ul>
116 </ul>
117 </div>
117 </div>
118
118
119 <div class="main">
119 <div class="main">
120
120
121 <h2><a href="/">test</a></h2>
121 <h2><a href="/">test</a></h2>
122 <h3>error</h3>
122 <h3>error</h3>
123
123
124 <form class="search" action="/log">
124 <form class="search" action="/log">
125
125
126 <p><input name="rev" id="search1" type="text" size="30"></p>
126 <p><input name="rev" id="search1" type="text" size="30"></p>
127 <div id="hint">find changesets by author, revision,
127 <div id="hint">find changesets by author, revision,
128 files, or words in the commit message</div>
128 files, or words in the commit message</div>
129 </form>
129 </form>
130
130
131 <div class="description">
131 <div class="description">
132 <p>
132 <p>
133 An error occurred while processing your request:
133 An error occurred while processing your request:
134 </p>
134 </p>
135 <p>
135 <p>
136 bork@2ef0ac749a14: not found in manifest
136 bork@2ef0ac749a14: not found in manifest
137 </p>
137 </p>
138 </div>
138 </div>
139 </div>
139 </div>
140 </div>
140 </div>
141
141
142
142
143
143
144 </body>
144 </body>
145 </html>
145 </html>
146
146
147 404 Not Found
147 404 Not Found
148
148
149
149
150 error: bork@2ef0ac749a14: not found in manifest
150 error: bork@2ef0ac749a14: not found in manifest
151 % try bad style
151 % try bad style
152 200 Script output follows
152 200 Script output follows
153
153
154 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
154 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
155 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">
155 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">
156 <head>
156 <head>
157 <link rel="icon" href="/static/hgicon.png" type="image/png" />
157 <link rel="icon" href="/static/hgicon.png" type="image/png" />
158 <meta name="robots" content="index, nofollow" />
158 <meta name="robots" content="index, nofollow" />
159 <link rel="stylesheet" href="/static/style-paper.css" type="text/css" />
159 <link rel="stylesheet" href="/static/style-paper.css" type="text/css" />
160
160
161 <title>test: 2ef0ac749a14 /</title>
161 <title>test: 2ef0ac749a14 /</title>
162 </head>
162 </head>
163 <body>
163 <body>
164
164
165 <div class="container">
165 <div class="container">
166 <div class="menu">
166 <div class="menu">
167 <div class="logo">
167 <div class="logo">
168 <a href="http://mercurial.selenic.com/">
168 <a href="http://mercurial.selenic.com/">
169 <img src="/static/hglogo.png" alt="mercurial" /></a>
169 <img src="/static/hglogo.png" alt="mercurial" /></a>
170 </div>
170 </div>
171 <ul>
171 <ul>
172 <li><a href="/shortlog/2ef0ac749a14">log</a></li>
172 <li><a href="/shortlog/2ef0ac749a14">log</a></li>
173 <li><a href="/graph/2ef0ac749a14">graph</a></li>
173 <li><a href="/graph/2ef0ac749a14">graph</a></li>
174 <li><a href="/tags">tags</a></li>
174 <li><a href="/tags">tags</a></li>
175 <li><a href="/branches">branches</a></li>
175 <li><a href="/branches">branches</a></li>
176 </ul>
176 </ul>
177 <ul>
177 <ul>
178 <li><a href="/rev/2ef0ac749a14">changeset</a></li>
178 <li><a href="/rev/2ef0ac749a14">changeset</a></li>
179 <li class="active">browse</li>
179 <li class="active">browse</li>
180 </ul>
180 </ul>
181 <ul>
181 <ul>
182
182
183 </ul>
183 </ul>
184 </div>
184 </div>
185
185
186 <div class="main">
186 <div class="main">
187 <h2><a href="/">test</a></h2>
187 <h2><a href="/">test</a></h2>
188 <h3>directory / @ 0:2ef0ac749a14 <span class="tag">tip</span> </h3>
188 <h3>directory / @ 0:2ef0ac749a14 <span class="tag">tip</span> </h3>
189
189
190 <form class="search" action="/log">
190 <form class="search" action="/log">
191
191
192 <p><input name="rev" id="search1" type="text" size="30" /></p>
192 <p><input name="rev" id="search1" type="text" size="30" /></p>
193 <div id="hint">find changesets by author, revision,
193 <div id="hint">find changesets by author, revision,
194 files, or words in the commit message</div>
194 files, or words in the commit message</div>
195 </form>
195 </form>
196
196
197 <table class="bigtable">
197 <table class="bigtable">
198 <tr>
198 <tr>
199 <th class="name">name</th>
199 <th class="name">name</th>
200 <th class="size">size</th>
200 <th class="size">size</th>
201 <th class="permissions">permissions</th>
201 <th class="permissions">permissions</th>
202 </tr>
202 </tr>
203 <tr class="fileline parity0">
203 <tr class="fileline parity0">
204 <td class="name"><a href="/file/2ef0ac749a14/">[up]</a></td>
204 <td class="name"><a href="/file/2ef0ac749a14/">[up]</a></td>
205 <td class="size"></td>
205 <td class="size"></td>
206 <td class="permissions">drwxr-xr-x</td>
206 <td class="permissions">drwxr-xr-x</td>
207 </tr>
207 </tr>
208
208
209 <tr class="fileline parity1">
209 <tr class="fileline parity1">
210 <td class="name">
210 <td class="name">
211 <a href="/file/2ef0ac749a14/da">
211 <a href="/file/2ef0ac749a14/da">
212 <img src="/static/coal-folder.png" alt="dir."/> da/
212 <img src="/static/coal-folder.png" alt="dir."/> da/
213 </a>
213 </a>
214 <a href="/file/2ef0ac749a14/da/">
214 <a href="/file/2ef0ac749a14/da/">
215
215
216 </a>
216 </a>
217 </td>
217 </td>
218 <td class="size"></td>
218 <td class="size"></td>
219 <td class="permissions">drwxr-xr-x</td>
219 <td class="permissions">drwxr-xr-x</td>
220 </tr>
220 </tr>
221
221
222 <tr class="fileline parity0">
222 <tr class="fileline parity0">
223 <td class="filename">
223 <td class="filename">
224 <a href="/file/2ef0ac749a14/foo">
224 <a href="/file/2ef0ac749a14/foo">
225 <img src="/static/coal-file.png" alt="file"/> foo
225 <img src="/static/coal-file.png" alt="file"/> foo
226 </a>
226 </a>
227 </td>
227 </td>
228 <td class="size">4</td>
228 <td class="size">4</td>
229 <td class="permissions">-rw-r--r--</td>
229 <td class="permissions">-rw-r--r--</td>
230 </tr>
230 </tr>
231 </table>
231 </table>
232 </div>
232 </div>
233 </div>
233 </div>
234
234
235
235
236 </body>
236 </body>
237 </html>
237 </html>
238
238
239 % stop and restart
239 % stop and restart
240 10 log lines written
240 10 log lines written
241 % static file
241 % static file
242 200 Script output follows
242 200 Script output follows
243
243
244 body { font-family: sans-serif; font-size: 12px; margin:0px; border:solid #d9d8d1; border-width:1px; margin:10px; }
244 body { font-family: sans-serif; font-size: 12px; margin:0px; border:solid #d9d8d1; border-width:1px; margin:10px; }
245 a { color:#0000cc; }
245 a { color:#0000cc; }
246 a:hover, a:visited, a:active { color:#880000; }
246 a:hover, a:visited, a:active { color:#880000; }
247 div.page_header { height:25px; padding:8px; font-size:18px; font-weight:bold; background-color:#d9d8d1; }
247 div.page_header { height:25px; padding:8px; font-size:18px; font-weight:bold; background-color:#d9d8d1; }
248 div.page_header a:visited { color:#0000cc; }
248 div.page_header a:visited { color:#0000cc; }
249 div.page_header a:hover { color:#880000; }
249 div.page_header a:hover { color:#880000; }
250 div.page_nav { padding:8px; }
250 div.page_nav { padding:8px; }
251 div.page_nav a:visited { color:#0000cc; }
251 div.page_nav a:visited { color:#0000cc; }
252 div.page_path { padding:8px; border:solid #d9d8d1; border-width:0px 0px 1px}
252 div.page_path { padding:8px; border:solid #d9d8d1; border-width:0px 0px 1px}
253 div.page_footer { padding:4px 8px; background-color: #d9d8d1; }
253 div.page_footer { padding:4px 8px; background-color: #d9d8d1; }
254 div.page_footer_text { float:left; color:#555555; font-style:italic; }
254 div.page_footer_text { float:left; color:#555555; font-style:italic; }
255 div.page_body { padding:8px; }
255 div.page_body { padding:8px; }
256 div.title, a.title {
256 div.title, a.title {
257 display:block; padding:6px 8px;
257 display:block; padding:6px 8px;
258 font-weight:bold; background-color:#edece6; text-decoration:none; color:#000000;
258 font-weight:bold; background-color:#edece6; text-decoration:none; color:#000000;
259 }
259 }
260 a.title:hover { background-color: #d9d8d1; }
260 a.title:hover { background-color: #d9d8d1; }
261 div.title_text { padding:6px 0px; border: solid #d9d8d1; border-width:0px 0px 1px; }
261 div.title_text { padding:6px 0px; border: solid #d9d8d1; border-width:0px 0px 1px; }
262 div.log_body { padding:8px 8px 8px 150px; }
262 div.log_body { padding:8px 8px 8px 150px; }
263 .age { white-space:nowrap; }
263 .age { white-space:nowrap; }
264 span.age { position:relative; float:left; width:142px; font-style:italic; }
264 span.age { position:relative; float:left; width:142px; font-style:italic; }
265 div.log_link {
265 div.log_link {
266 padding:0px 8px;
266 padding:0px 8px;
267 font-size:10px; font-family:sans-serif; font-style:normal;
267 font-size:10px; font-family:sans-serif; font-style:normal;
268 position:relative; float:left; width:136px;
268 position:relative; float:left; width:136px;
269 }
269 }
270 div.list_head { padding:6px 8px 4px; border:solid #d9d8d1; border-width:1px 0px 0px; font-style:italic; }
270 div.list_head { padding:6px 8px 4px; border:solid #d9d8d1; border-width:1px 0px 0px; font-style:italic; }
271 a.list { text-decoration:none; color:#000000; }
271 a.list { text-decoration:none; color:#000000; }
272 a.list:hover { text-decoration:underline; color:#880000; }
272 a.list:hover { text-decoration:underline; color:#880000; }
273 table { padding:8px 4px; }
273 table { padding:8px 4px; }
274 th { padding:2px 5px; font-size:12px; text-align:left; }
274 th { padding:2px 5px; font-size:12px; text-align:left; }
275 tr.light:hover, .parity0:hover { background-color:#edece6; }
275 tr.light:hover, .parity0:hover { background-color:#edece6; }
276 tr.dark, .parity1 { background-color:#f6f6f0; }
276 tr.dark, .parity1 { background-color:#f6f6f0; }
277 tr.dark:hover, .parity1:hover { background-color:#edece6; }
277 tr.dark:hover, .parity1:hover { background-color:#edece6; }
278 td { padding:2px 5px; font-size:12px; vertical-align:top; }
278 td { padding:2px 5px; font-size:12px; vertical-align:top; }
279 td.closed { background-color: #99f; }
279 td.link { padding:2px 5px; font-family:sans-serif; font-size:10px; }
280 td.link { padding:2px 5px; font-family:sans-serif; font-size:10px; }
280 td.indexlinks { white-space: nowrap; }
281 td.indexlinks { white-space: nowrap; }
281 td.indexlinks a {
282 td.indexlinks a {
282 padding: 2px 5px; line-height: 10px;
283 padding: 2px 5px; line-height: 10px;
283 border: 1px solid;
284 border: 1px solid;
284 color: #ffffff; background-color: #7777bb;
285 color: #ffffff; background-color: #7777bb;
285 border-color: #aaaadd #333366 #333366 #aaaadd;
286 border-color: #aaaadd #333366 #333366 #aaaadd;
286 font-weight: bold; text-align: center; text-decoration: none;
287 font-weight: bold; text-align: center; text-decoration: none;
287 font-size: 10px;
288 font-size: 10px;
288 }
289 }
289 td.indexlinks a:hover { background-color: #6666aa; }
290 td.indexlinks a:hover { background-color: #6666aa; }
290 div.pre { font-family:monospace; font-size:12px; white-space:pre; }
291 div.pre { font-family:monospace; font-size:12px; white-space:pre; }
291 div.diff_info { font-family:monospace; color:#000099; background-color:#edece6; font-style:italic; }
292 div.diff_info { font-family:monospace; color:#000099; background-color:#edece6; font-style:italic; }
292 div.index_include { border:solid #d9d8d1; border-width:0px 0px 1px; padding:12px 8px; }
293 div.index_include { border:solid #d9d8d1; border-width:0px 0px 1px; padding:12px 8px; }
293 div.search { margin:4px 8px; position:absolute; top:56px; right:12px }
294 div.search { margin:4px 8px; position:absolute; top:56px; right:12px }
294 .linenr { color:#999999; text-decoration:none }
295 .linenr { color:#999999; text-decoration:none }
295 div.rss_logo { float: right; white-space: nowrap; }
296 div.rss_logo { float: right; white-space: nowrap; }
296 div.rss_logo a {
297 div.rss_logo a {
297 padding:3px 6px; line-height:10px;
298 padding:3px 6px; line-height:10px;
298 border:1px solid; border-color:#fcc7a5 #7d3302 #3e1a01 #ff954e;
299 border:1px solid; border-color:#fcc7a5 #7d3302 #3e1a01 #ff954e;
299 color:#ffffff; background-color:#ff6600;
300 color:#ffffff; background-color:#ff6600;
300 font-weight:bold; font-family:sans-serif; font-size:10px;
301 font-weight:bold; font-family:sans-serif; font-size:10px;
301 text-align:center; text-decoration:none;
302 text-align:center; text-decoration:none;
302 }
303 }
303 div.rss_logo a:hover { background-color:#ee5500; }
304 div.rss_logo a:hover { background-color:#ee5500; }
304 pre { margin: 0; }
305 pre { margin: 0; }
305 span.logtags span {
306 span.logtags span {
306 padding: 0px 4px;
307 padding: 0px 4px;
307 font-size: 10px;
308 font-size: 10px;
308 font-weight: normal;
309 font-weight: normal;
309 border: 1px solid;
310 border: 1px solid;
310 background-color: #ffaaff;
311 background-color: #ffaaff;
311 border-color: #ffccff #ff00ee #ff00ee #ffccff;
312 border-color: #ffccff #ff00ee #ff00ee #ffccff;
312 }
313 }
313 span.logtags span.tagtag {
314 span.logtags span.tagtag {
314 background-color: #ffffaa;
315 background-color: #ffffaa;
315 border-color: #ffffcc #ffee00 #ffee00 #ffffcc;
316 border-color: #ffffcc #ffee00 #ffee00 #ffffcc;
316 }
317 }
317 span.logtags span.branchtag {
318 span.logtags span.branchtag {
318 background-color: #aaffaa;
319 background-color: #aaffaa;
319 border-color: #ccffcc #00cc33 #00cc33 #ccffcc;
320 border-color: #ccffcc #00cc33 #00cc33 #ccffcc;
320 }
321 }
321 span.logtags span.inbranchtag {
322 span.logtags span.inbranchtag {
322 background-color: #d5dde6;
323 background-color: #d5dde6;
323 border-color: #e3ecf4 #9398f4 #9398f4 #e3ecf4;
324 border-color: #e3ecf4 #9398f4 #9398f4 #e3ecf4;
324 }
325 }
325
326
326 /* Graph */
327 /* Graph */
327 div#wrapper {
328 div#wrapper {
328 position: relative;
329 position: relative;
329 margin: 0;
330 margin: 0;
330 padding: 0;
331 padding: 0;
331 margin-top: 3px;
332 margin-top: 3px;
332 }
333 }
333
334
334 canvas {
335 canvas {
335 position: absolute;
336 position: absolute;
336 z-index: 5;
337 z-index: 5;
337 top: -0.9em;
338 top: -0.9em;
338 margin: 0;
339 margin: 0;
339 }
340 }
340
341
341 ul#nodebgs {
342 ul#nodebgs {
342 list-style: none inside none;
343 list-style: none inside none;
343 padding: 0;
344 padding: 0;
344 margin: 0;
345 margin: 0;
345 top: -0.7em;
346 top: -0.7em;
346 }
347 }
347
348
348 ul#graphnodes li, ul#nodebgs li {
349 ul#graphnodes li, ul#nodebgs li {
349 height: 39px;
350 height: 39px;
350 }
351 }
351
352
352 ul#graphnodes {
353 ul#graphnodes {
353 position: absolute;
354 position: absolute;
354 z-index: 10;
355 z-index: 10;
355 top: -0.8em;
356 top: -0.8em;
356 list-style: none inside none;
357 list-style: none inside none;
357 padding: 0;
358 padding: 0;
358 }
359 }
359
360
360 ul#graphnodes li .info {
361 ul#graphnodes li .info {
361 display: block;
362 display: block;
362 font-size: 100%;
363 font-size: 100%;
363 position: relative;
364 position: relative;
364 top: -3px;
365 top: -3px;
365 font-style: italic;
366 font-style: italic;
366 }
367 }
367 % errors
368 % errors
General Comments 0
You need to be logged in to leave comments. Login now