1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102
|
--TEST--
Simplelist rendering 001 - Types and columns
--FILE--
<?php
namespace phpdotnet\phd;
require_once __DIR__ . "/../../setup.php";
$xml_file = __DIR__ . "/data/simplelist.xml";
$config->setXml_file($xml_file);
$format = new TestGenericChunkedXHTML($config, $outputHandler);
$render = new TestRender(new Reader($outputHandler), $config, $format);
$render->run();
?>
--EXPECTF--
Filename: simpelist.html
Content:
<div id="simpelist" class="chapter">
<div class="section">
<p class="para">1. Simplelist with no type</p>
<ul class="simplelist">
<li>First</li>
<li>Second</li>
<li>Third</li>
<li>Fourth</li>
<li>Fifth</li>
<li>Sixth</li>
<li>Seventh</li>
</ul>
</div>
<div class="section">
<p class="para">2. Simplelist with "inline" type</p>
<span class="simplelist">First, Second, Third, Fourth, Fifth, Sixth, Seventh</span>
</div>
<div class="section">
<p class="para">3. Simplelist with "vert" type, 3 columns</p>
<table class="simplelist">
<tbody>
<tr>
<td>First</td>
<td>Fourth</td>
<td>Seventh</td>
</tr>
<tr>
<td>Second</td>
<td>Fifth</td>
<td></td>
</tr>
<tr>
<td>Third</td>
<td>Sixth</td>
<td></td>
</tr>
</tbody>
</table>
</div>
<div class="section">
<p class="para">4. Simplelist with "horiz" type, 4 columns</p>
<table class="simplelist">
<tbody>
<tr>
<td>First</td>
<td>Second</td>
<td>Third</td>
<td>Fourth</td>
</tr>
<tr>
<td>Fifth</td>
<td>Sixth</td>
<td>Seventh</td>
<td></td>
</tr>
</tbody>
</table>
</div>
<div class="section">
<p class="para">5. Simplelist with no type and various elements inside members</p>
<ul class="simplelist">
<li>1 <code class="literal">First</code></li>
<li>2 <strong><code>Second</code></strong></li>
<li>3 <code class="code">Third</code></li>
<li>4 <code class="literal">Fourth</code></li>
<li>5 <strong><code>Fifth</code></strong></li>
<li>6 <code class="code">Sixth</code></li>
<li>7 <code class="literal">Seventh</code></li>
</ul>
</div>
<div class="section">
<p class="para">6. Simplelist with "inline" type and various elements inside members</p>
<span class="simplelist">1 <code class="literal">First</code>, 2 <strong><code>Second</code></strong>, 3 <code class="code">Third</code>, 4 <code class="literal">Fourth</code>, 5 <strong><code>Fifth</code></strong>, 6 <code class="code">Sixth</code>, 7 <code class="literal">Seventh</code></span>
</div>
</div>
|