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