Index: trunk/phase3/tests/parser/parserTests.txt |
— | — | @@ -1271,6 +1271,140 @@ |
1272 | 1272 | !! end |
1273 | 1273 | |
1274 | 1274 | !! test |
| 1275 | +Table with thead |
| 1276 | +!! input |
| 1277 | +{| |
| 1278 | +! Number !! Another number |
| 1279 | +|- |
| 1280 | +| 1 || 2 |
| 1281 | +|- |
| 1282 | +| 3 || 4 |
| 1283 | +|} |
| 1284 | +!! result |
| 1285 | +<table> |
| 1286 | +<thead> |
| 1287 | +<tr> |
| 1288 | +<th>Number |
| 1289 | +</th> |
| 1290 | +<th>Another number |
| 1291 | +</th> |
| 1292 | +</tr></thead> |
| 1293 | +<tbody> |
| 1294 | +<tr> |
| 1295 | +<td>1 |
| 1296 | +</td> |
| 1297 | +<td>2 |
| 1298 | +</td> |
| 1299 | +</tr> |
| 1300 | +<tr> |
| 1301 | +<td>3 |
| 1302 | +</td> |
| 1303 | +<td>4 |
| 1304 | +</td> |
| 1305 | +</tr></tbody> |
| 1306 | +</table> |
| 1307 | + |
| 1308 | +!! end |
| 1309 | +!! test |
| 1310 | +Table with multiple thead |
| 1311 | +!! input |
| 1312 | +{| |
| 1313 | +! Number !! Another number |
| 1314 | +|- |
| 1315 | +| 1 || 2 |
| 1316 | +|- |
| 1317 | +! Some other number !! Another number |
| 1318 | +|- |
| 1319 | +| 3 || 4 |
| 1320 | +|} |
| 1321 | +!! result |
| 1322 | +<table> |
| 1323 | +<thead> |
| 1324 | +<tr> |
| 1325 | +<th>Number |
| 1326 | +</th> |
| 1327 | +<th>Another number |
| 1328 | +</th> |
| 1329 | +</tr></thead> |
| 1330 | +<tbody> |
| 1331 | +<tr> |
| 1332 | +<td>1 |
| 1333 | +</td> |
| 1334 | +<td>2 |
| 1335 | +</td> |
| 1336 | +</tr></tbody> |
| 1337 | +<thead> |
| 1338 | +<tr> |
| 1339 | +<th>Some other number |
| 1340 | +</th> |
| 1341 | +<th>Another number |
| 1342 | +</th> |
| 1343 | +</tr></thead> |
| 1344 | +<tbody> |
| 1345 | +<tr> |
| 1346 | +<td>3 |
| 1347 | +</td> |
| 1348 | +<td>4 |
| 1349 | +</td> |
| 1350 | +</tr></tbody> |
| 1351 | +</table> |
| 1352 | + |
| 1353 | +!! end |
| 1354 | +!! test |
| 1355 | +Table with thead & tfoot |
| 1356 | +!! input |
| 1357 | +{| |
| 1358 | +! Number !! Another number |
| 1359 | +|- |
| 1360 | +| 1 || 2 |
| 1361 | +|- |
| 1362 | +! Some other number !! Another number |
| 1363 | +|- |
| 1364 | +| 3 || 4 |
| 1365 | +|- |
| 1366 | +! Total: 4 !! Total: 6 |
| 1367 | +|} |
| 1368 | +!! result |
| 1369 | +<table> |
| 1370 | +<thead> |
| 1371 | +<tr> |
| 1372 | +<th>Number |
| 1373 | +</th> |
| 1374 | +<th>Another number |
| 1375 | +</th> |
| 1376 | +</tr></thead> |
| 1377 | +<tbody> |
| 1378 | +<tr> |
| 1379 | +<td>1 |
| 1380 | +</td> |
| 1381 | +<td>2 |
| 1382 | +</td> |
| 1383 | +</tr></tbody> |
| 1384 | +<thead> |
| 1385 | +<tr> |
| 1386 | +<th>Some other number |
| 1387 | +</th> |
| 1388 | +<th>Another number |
| 1389 | +</th> |
| 1390 | +</tr></thead> |
| 1391 | +<tbody> |
| 1392 | +<tr> |
| 1393 | +<td>3 |
| 1394 | +</td> |
| 1395 | +<td>4 |
| 1396 | +</td> |
| 1397 | +</tr></tbody> |
| 1398 | +<tfoot> |
| 1399 | +<tr> |
| 1400 | +<th>Total: 4 |
| 1401 | +</th> |
| 1402 | +<th>Total: 6 |
| 1403 | +</th> |
| 1404 | +</tr></tfoot> |
| 1405 | +</table> |
| 1406 | + |
| 1407 | +!! end |
| 1408 | +!! test |
1275 | 1409 | Multiplication table |
1276 | 1410 | !! input |
1277 | 1411 | {| border="1" cellpadding="2" |
— | — | @@ -7777,7 +7911,7 @@ |
7778 | 7912 | !! input |
7779 | 7913 | == -{Naslov}- == |
7780 | 7914 | !! result |
7781 | | -<h2><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=1" title="Уреди део: Naslov">уреди</a>]</span> <span class="mw-headline" id="-.7BNaslov.7D-"> Naslov </span></h2> |
| 7915 | +<h2><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=1" title="Уредите одељак „Naslov“">уреди</a>]</span> <span class="mw-headline" id="-.7BNaslov.7D-"> Naslov </span></h2> |
7782 | 7916 | |
7783 | 7917 | !! end |
7784 | 7918 | |