Updated tests for new HTML format.

Verified against old tests using tidy and diff.
This commit is contained in:
John MacFarlane 2011-02-04 20:37:58 -08:00
parent 99cb6076f8
commit 90647a56f6
11 changed files with 1265 additions and 1673 deletions

View file

@ -1,50 +1,15 @@
<h1 id="lhs-test"
>lhs test</h1
><p
><code
>unsplit</code
> is an arrow that takes a pair of values and combines them to return a single value:</p
><pre class="sourceCode haskell"
><code
>&gt; <span class="ot"
>unsplit </span
><span class="ot"
>::</span
> (<span class="dt"
>Arrow</span
> a) <span class="ot"
>=&gt;</span
> (b <span class="ot"
>-&gt;</span
> c <span class="ot"
>-&gt;</span
> d) <span class="ot"
>-&gt;</span
> a (b, c) d<br
/>&gt; unsplit <span class="fu"
>=</span
> arr <span class="fu"
>.</span
> <span class="fu"
>uncurry</span
> <br
/>&gt; <span class="co"
>-- arr (\op (x,y) -&gt; x `op` y) </span
></code
></pre
><p
><code
>(***)</code
> combines two arrows into a new arrow by running the two arrows on a pair of values (one arrow on the first item of the pair and one arrow on the second item of the pair).</p
><pre
><code
>f *** g = first f &gt;&gt;&gt; second g
</code
></pre
><p
>Block quote:</p
><blockquote
><p
>foo bar</p
></blockquote
>
<h1 id="lhs-test">lhs test</h1>
<p><code>unsplit</code> is an arrow that takes a pair of values and combines them to return a single value:</p>
<pre class="sourceCode haskell"><code>&gt; <span class="ot">unsplit </span><span class="ot">::</span> (<span class="dt">Arrow</span> a) <span class="ot">=&gt;</span> (b <span class="ot">-&gt;</span> c <span class="ot">-&gt;</span> d) <span class="ot">-&gt;</span> a (b, c) d<br/>&gt; unsplit <span class="fu">=</span> arr <span class="fu">.</span> <span class="fu">uncurry</span> <br/>&gt; <span class="co">-- arr (\op (x,y) -&gt; x `op` y) </span></code></pre>
<p><code>(***)</code> combines two arrows into a new arrow by running the two arrows on a pair of values (one arrow on the first item of the pair and one arrow on the second item of the pair).</p>
<pre><code>f *** g = first f &gt;&gt;&gt; second g</code></pre>
<p>Block quote:</p>
<blockquote>
<p>foo bar</p>
</blockquote>

View file

@ -25,55 +25,20 @@ code.sourceCode span.er { color: red; font-weight: bold; }
</style>
</head>
<body>
<h1 id="lhs-test"
>lhs test</h1
><p
><code
>unsplit</code
> is an arrow that takes a pair of values and combines them to return a single value:</p
><pre class="sourceCode"
><code class="sourceCode haskell"
><span class="ot"
>unsplit </span
><span class="ot"
>::</span
> (<span class="dt"
>Arrow</span
> a) <span class="ot"
>=&gt;</span
> (b <span class="ot"
>-&gt;</span
> c <span class="ot"
>-&gt;</span
> d) <span class="ot"
>-&gt;</span
> a (b, c) d<br
/>unsplit <span class="fu"
>=</span
> arr <span class="fu"
>.</span
> <span class="fu"
>uncurry</span
> <br
/> <span class="co"
>-- arr (\op (x,y) -&gt; x `op` y) </span
></code
></pre
><p
><code
>(***)</code
> combines two arrows into a new arrow by running the two arrows on a pair of values (one arrow on the first item of the pair and one arrow on the second item of the pair).</p
><pre
><code
>f *** g = first f &gt;&gt;&gt; second g
</code
></pre
><p
>Block quote:</p
><blockquote
><p
>foo bar</p
></blockquote
>
<h1 id="lhs-test">lhs test</h1>
<p><code>unsplit</code> is an arrow that takes a pair of values and combines them to return a single value:</p>
<pre class="sourceCode"><code class="sourceCode haskell"><span class="ot">unsplit </span><span class="ot">::</span> (<span class="dt">Arrow</span> a) <span class="ot">=&gt;</span> (b <span class="ot">-&gt;</span> c <span class="ot">-&gt;</span> d) <span class="ot">-&gt;</span> a (b, c) d<br />unsplit <span class="fu">=</span> arr <span class="fu">.</span> <span class="fu">uncurry</span> <br /> <span class="co">-- arr (\op (x,y) -&gt; x `op` y) </span></code></pre>
<p><code>(***)</code> combines two arrows into a new arrow by running the two arrows on a pair of values (one arrow on the first item of the pair and one arrow on the second item of the pair).</p>
<pre><code>f *** g = first f &gt;&gt;&gt; second g
</code></pre>
<p>Block quote:</p>
<blockquote>
<p>foo bar</p></blockquote>
</body>
</html>

View file

@ -25,55 +25,20 @@ code.sourceCode span.er { color: red; font-weight: bold; }
</style>
</head>
<body>
<h1 id="lhs-test"
>lhs test</h1
><p
><code
>unsplit</code
> is an arrow that takes a pair of values and combines them to return a single value:</p
><pre class="sourceCode"
><code class="sourceCode haskell"
>&gt; <span class="ot"
>unsplit </span
><span class="ot"
>::</span
> (<span class="dt"
>Arrow</span
> a) <span class="ot"
>=&gt;</span
> (b <span class="ot"
>-&gt;</span
> c <span class="ot"
>-&gt;</span
> d) <span class="ot"
>-&gt;</span
> a (b, c) d<br
/>&gt; unsplit <span class="fu"
>=</span
> arr <span class="fu"
>.</span
> <span class="fu"
>uncurry</span
> <br
/>&gt; <span class="co"
>-- arr (\op (x,y) -&gt; x `op` y) </span
></code
></pre
><p
><code
>(***)</code
> combines two arrows into a new arrow by running the two arrows on a pair of values (one arrow on the first item of the pair and one arrow on the second item of the pair).</p
><pre
><code
>f *** g = first f &gt;&gt;&gt; second g
</code
></pre
><p
>Block quote:</p
><blockquote
><p
>foo bar</p
></blockquote
>
<h1 id="lhs-test">lhs test</h1>
<p><code>unsplit</code> is an arrow that takes a pair of values and combines them to return a single value:</p>
<pre class="sourceCode"><code class="sourceCode haskell">&gt; <span class="ot">unsplit </span><span class="ot">::</span> (<span class="dt">Arrow</span> a) <span class="ot">=&gt;</span> (b <span class="ot">-&gt;</span> c <span class="ot">-&gt;</span> d) <span class="ot">-&gt;</span> a (b, c) d<br />&gt; unsplit <span class="fu">=</span> arr <span class="fu">.</span> <span class="fu">uncurry</span> <br />&gt; <span class="co">-- arr (\op (x,y) -&gt; x `op` y) </span></code></pre>
<p><code>(***)</code> combines two arrows into a new arrow by running the two arrows on a pair of values (one arrow on the first item of the pair and one arrow on the second item of the pair).</p>
<pre><code>f *** g = first f &gt;&gt;&gt; second g
</code></pre>
<p>Block quote:</p>
<blockquote>
<p>foo bar</p></blockquote>
</body>
</html>

View file

@ -6,34 +6,23 @@
<title></title>
</head>
<body>
<h1 id="lhs-test"
>lhs test</h1
><p
><code
>unsplit</code
> is an arrow that takes a pair of values and combines them to return a single value:</p
><pre class="sourceCode haskell"
><code
>unsplit :: (Arrow a) =&gt; (b -&gt; c -&gt; d) -&gt; a (b, c) d
<h1 id="lhs-test">lhs test</h1>
<p><code>unsplit</code> is an arrow that takes a pair of values and combines them to return a single value:</p>
<pre class="sourceCode haskell"><code>unsplit :: (Arrow a) =&gt; (b -&gt; c -&gt; d) -&gt; a (b, c) d
unsplit = arr . uncurry
-- arr (\op (x,y) -&gt; x `op` y)
</code
></pre
><p
><code
>(***)</code
> combines two arrows into a new arrow by running the two arrows on a pair of values (one arrow on the first item of the pair and one arrow on the second item of the pair).</p
><pre
><code
>f *** g = first f &gt;&gt;&gt; second g
</code
></pre
><p
>Block quote:</p
><blockquote
><p
>foo bar</p
></blockquote
>
</code></pre>
<p><code>(***)</code> combines two arrows into a new arrow by running the two arrows on a pair of values (one arrow on the first item of the pair and one arrow on the second item of the pair).</p>
<pre><code>f *** g = first f &gt;&gt;&gt; second g
</code></pre>
<p>Block quote:</p>
<blockquote>
<p>foo bar</p></blockquote>
</body>
</html>

View file

@ -6,34 +6,23 @@
<title></title>
</head>
<body>
<h1 id="lhs-test"
>lhs test</h1
><p
><code
>unsplit</code
> is an arrow that takes a pair of values and combines them to return a single value:</p
><pre class="sourceCode literate haskell"
><code
>&gt; unsplit :: (Arrow a) =&gt; (b -&gt; c -&gt; d) -&gt; a (b, c) d
<h1 id="lhs-test">lhs test</h1>
<p><code>unsplit</code> is an arrow that takes a pair of values and combines them to return a single value:</p>
<pre class="sourceCode literate haskell"><code>&gt; unsplit :: (Arrow a) =&gt; (b -&gt; c -&gt; d) -&gt; a (b, c) d
&gt; unsplit = arr . uncurry
&gt; -- arr (\op (x,y) -&gt; x `op` y)
</code
></pre
><p
><code
>(***)</code
> combines two arrows into a new arrow by running the two arrows on a pair of values (one arrow on the first item of the pair and one arrow on the second item of the pair).</p
><pre
><code
>f *** g = first f &gt;&gt;&gt; second g
</code
></pre
><p
>Block quote:</p
><blockquote
><p
>foo bar</p
></blockquote
>
</code></pre>
<p><code>(***)</code> combines two arrows into a new arrow by running the two arrows on a pair of values (one arrow on the first item of the pair and one arrow on the second item of the pair).</p>
<pre><code>f *** g = first f &gt;&gt;&gt; second g
</code></pre>
<p>Block quote:</p>
<blockquote>
<p>foo bar</p></blockquote>
</body>
</html>

View file

@ -35,25 +35,31 @@
<h4>July 15, 2006</h4>
</div>
<div class="slide">
<h1
>First slide</h1
><ul
><li
>first bullet</li
><li
>second bullet</li
></ul
></div>
<h1>First slide</h1>
<ul>
<li>
first bullet</li>
<li>
second bullet</li>
</ul>
</div>
<div class="slide">
<h1
>Math</h1
><ul
><li
><span class="math"
>$\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}$</span
></li
></ul
></div>
<h1>Math</h1>
<ul>
<li>
<span class="math">$\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}$</span></li>
</ul>
</div>
</div>
</body>
</html>

View file

@ -17,8 +17,7 @@
<link rel="stylesheet" href="ui/default/opera.css" type="text/css" media="projection" id="operaFix" />
<!-- S5 JS -->
<script src="ui/default/slides.js" type="text/javascript"></script>
<script type="text/javascript"
>/*
<script type="text/javascript">/*
LaTeXMathML.js from http://math.etsu.edu/LaTeXMathML/
Adapted by Jeff Knisely and Douglas Woodall from ASCIIMathML.js v. 1.4.7,
(c) 2005 Peter Jipsen http://www.chapman.edu/~jipsen.
@ -216,8 +215,7 @@
{existing();generic();};}
else
{window.onload=generic;}}
</script
>
</script>
</head>
<body>
<div class="layout">
@ -236,25 +234,31 @@
<h4>July 15, 2006</h4>
</div>
<div class="slide">
<h1
>First slide</h1
><ul class="incremental"
><li
>first bullet</li
><li
>second bullet</li
></ul
></div>
<h1>First slide</h1>
<ul class="incremental">
<li>
first bullet</li>
<li>
second bullet</li>
</ul>
</div>
<div class="slide">
<h1
>Math</h1
><ul class="incremental"
><li
><span class="LaTeX"
>$\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}$</span
></li
></ul
></div>
<h1>Math</h1>
<ul class="incremental">
<li>
<span class="LaTeX">$\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}$</span></li>
</ul>
</div>
</div>
</body>
</html>

View file

@ -1,17 +1,15 @@
<h1 id="first-slide"
>First slide</h1
><ul
><li
>first bullet</li
><li
>second bullet</li
></ul
><h1 id="math"
>Math</h1
><ul
><li
><span class="math"
>$\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}$</span
></li
></ul
>
<h1 id="first-slide">First slide</h1>
<ul>
<li>
first bullet</li>
<li>
second bullet</li>
</ul>
<h1 id="math">Math</h1>
<ul>
<li>
<span class="math">$\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}$</span></li>
</ul>

View file

@ -13,23 +13,21 @@
<body>
STUFF INSERTED
<h1 class="title">My S5 Document</h1>
<h1 id="first-slide"
>First slide</h1
><ul
><li
>first bullet</li
><li
>second bullet</li
></ul
><h1 id="math"
>Math</h1
><ul
><li
><span class="math"
>$\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}$</span
></li
></ul
>
<h1 id="first-slide">First slide</h1>
<ul>
<li>
first bullet</li>
<li>
second bullet</li>
</ul>
<h1 id="math">Math</h1>
<ul>
<li>
<span class="math">$\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}$</span></li>
</ul>
STUFF INSERTED
</body>
</html>

View file

@ -1,301 +1,234 @@
<p
>Simple table with caption:</p
><table
><caption
>Demonstration of simple table syntax.</caption
><thead
><tr class="header"
><th align="right"
>Right</th
><th align="left"
>Left</th
><th align="center"
>Center</th
><th align="left"
>Default</th
></tr
></thead
><tbody
><tr class="odd"
><td align="right"
>12</td
><td align="left"
>12</td
><td align="center"
>12</td
><td align="left"
>12</td
></tr
><tr class="even"
><td align="right"
>123</td
><td align="left"
>123</td
><td align="center"
>123</td
><td align="left"
>123</td
></tr
><tr class="odd"
><td align="right"
>1</td
><td align="left"
>1</td
><td align="center"
>1</td
><td align="left"
>1</td
></tr
></tbody
></table
><p
>Simple table without caption:</p
><table
><thead
><tr class="header"
><th align="right"
>Right</th
><th align="left"
>Left</th
><th align="center"
>Center</th
><th align="left"
>Default</th
></tr
></thead
><tbody
><tr class="odd"
><td align="right"
>12</td
><td align="left"
>12</td
><td align="center"
>12</td
><td align="left"
>12</td
></tr
><tr class="even"
><td align="right"
>123</td
><td align="left"
>123</td
><td align="center"
>123</td
><td align="left"
>123</td
></tr
><tr class="odd"
><td align="right"
>1</td
><td align="left"
>1</td
><td align="center"
>1</td
><td align="left"
>1</td
></tr
></tbody
></table
><p
>Simple table indented two spaces:</p
><table
><caption
>Demonstration of simple table syntax.</caption
><thead
><tr class="header"
><th align="right"
>Right</th
><th align="left"
>Left</th
><th align="center"
>Center</th
><th align="left"
>Default</th
></tr
></thead
><tbody
><tr class="odd"
><td align="right"
>12</td
><td align="left"
>12</td
><td align="center"
>12</td
><td align="left"
>12</td
></tr
><tr class="even"
><td align="right"
>123</td
><td align="left"
>123</td
><td align="center"
>123</td
><td align="left"
>123</td
></tr
><tr class="odd"
><td align="right"
>1</td
><td align="left"
>1</td
><td align="center"
>1</td
><td align="left"
>1</td
></tr
></tbody
></table
><p
>Multiline table with caption:</p
><table
><caption
>Here's the caption. It may span multiple lines.</caption
><col width="15%"
/><col width="13%"
/><col width="16%"
/><col width="33%"
/><thead
><tr class="header"
><th align="center"
>Centered Header</th
><th align="left"
>Left Aligned</th
><th align="right"
>Right Aligned</th
><th align="left"
>Default aligned</th
></tr
></thead
><tbody
><tr class="odd"
><td align="center"
>First</td
><td align="left"
>row</td
><td align="right"
>12.0</td
><td align="left"
>Example of a row that spans multiple lines.</td
></tr
><tr class="even"
><td align="center"
>Second</td
><td align="left"
>row</td
><td align="right"
>5.0</td
><td align="left"
>Here's another one. Note the blank line between rows.</td
></tr
></tbody
></table
><p
>Multiline table without caption:</p
><table
><col width="15%"
/><col width="13%"
/><col width="16%"
/><col width="33%"
/><thead
><tr class="header"
><th align="center"
>Centered Header</th
><th align="left"
>Left Aligned</th
><th align="right"
>Right Aligned</th
><th align="left"
>Default aligned</th
></tr
></thead
><tbody
><tr class="odd"
><td align="center"
>First</td
><td align="left"
>row</td
><td align="right"
>12.0</td
><td align="left"
>Example of a row that spans multiple lines.</td
></tr
><tr class="even"
><td align="center"
>Second</td
><td align="left"
>row</td
><td align="right"
>5.0</td
><td align="left"
>Here's another one. Note the blank line between rows.</td
></tr
></tbody
></table
><p
>Table without column headers:</p
><table
><tbody
><tr class="odd"
><td align="right"
>12</td
><td align="left"
>12</td
><td align="center"
>12</td
><td align="right"
>12</td
></tr
><tr class="even"
><td align="right"
>123</td
><td align="left"
>123</td
><td align="center"
>123</td
><td align="right"
>123</td
></tr
><tr class="odd"
><td align="right"
>1</td
><td align="left"
>1</td
><td align="center"
>1</td
><td align="right"
>1</td
></tr
></tbody
></table
><p
>Multiline table without column headers:</p
><table
><col width="15%"
/><col width="13%"
/><col width="16%"
/><col width="33%"
/><tbody
><tr class="odd"
><td align="center"
>First</td
><td align="left"
>row</td
><td align="right"
>12.0</td
><td align="left"
>Example of a row that spans multiple lines.</td
></tr
><tr class="even"
><td align="center"
>Second</td
><td align="left"
>row</td
><td align="right"
>5.0</td
><td align="left"
>Here's another one. Note the blank line between rows.</td
></tr
></tbody
></table
>
<p>Simple table with caption:</p>
<table><caption>Demonstration of simple table syntax.</caption><thead><tr class="header"><th align="right">
Right</th>
<th align="left">
Left</th>
<th align="center">
Center</th>
<th align="left">
Default</th>
</tr>
</thead><tbody><tr class="odd"><td align="right">
12</td>
<td align="left">
12</td>
<td align="center">
12</td>
<td align="left">
12</td>
</tr>
<tr class="even"><td align="right">
123</td>
<td align="left">
123</td>
<td align="center">
123</td>
<td align="left">
123</td>
</tr>
<tr class="odd"><td align="right">
1</td>
<td align="left">
1</td>
<td align="center">
1</td>
<td align="left">
1</td>
</tr>
</tbody></table>
<p>Simple table without caption:</p>
<table><thead><tr class="header"><th align="right">
Right</th>
<th align="left">
Left</th>
<th align="center">
Center</th>
<th align="left">
Default</th>
</tr>
</thead><tbody><tr class="odd"><td align="right">
12</td>
<td align="left">
12</td>
<td align="center">
12</td>
<td align="left">
12</td>
</tr>
<tr class="even"><td align="right">
123</td>
<td align="left">
123</td>
<td align="center">
123</td>
<td align="left">
123</td>
</tr>
<tr class="odd"><td align="right">
1</td>
<td align="left">
1</td>
<td align="center">
1</td>
<td align="left">
1</td>
</tr>
</tbody></table>
<p>Simple table indented two spaces:</p>
<table><caption>Demonstration of simple table syntax.</caption><thead><tr class="header"><th align="right">
Right</th>
<th align="left">
Left</th>
<th align="center">
Center</th>
<th align="left">
Default</th>
</tr>
</thead><tbody><tr class="odd"><td align="right">
12</td>
<td align="left">
12</td>
<td align="center">
12</td>
<td align="left">
12</td>
</tr>
<tr class="even"><td align="right">
123</td>
<td align="left">
123</td>
<td align="center">
123</td>
<td align="left">
123</td>
</tr>
<tr class="odd"><td align="right">
1</td>
<td align="left">
1</td>
<td align="center">
1</td>
<td align="left">
1</td>
</tr>
</tbody></table>
<p>Multiline table with caption:</p>
<table><caption>Here's the caption. It may span multiple lines.</caption><col width="15%" /><col width="13%" /><col width="16%" /><col width="33%" /><thead><tr class="header"><th align="center">
Centered Header</th>
<th align="left">
Left Aligned</th>
<th align="right">
Right Aligned</th>
<th align="left">
Default aligned</th>
</tr>
</thead><tbody><tr class="odd"><td align="center">
First</td>
<td align="left">
row</td>
<td align="right">
12.0</td>
<td align="left">
Example of a row that spans multiple lines.</td>
</tr>
<tr class="even"><td align="center">
Second</td>
<td align="left">
row</td>
<td align="right">
5.0</td>
<td align="left">
Here's another one. Note the blank line between rows.</td>
</tr>
</tbody></table>
<p>Multiline table without caption:</p>
<table><col width="15%" /><col width="13%" /><col width="16%" /><col width="33%" /><thead><tr class="header"><th align="center">
Centered Header</th>
<th align="left">
Left Aligned</th>
<th align="right">
Right Aligned</th>
<th align="left">
Default aligned</th>
</tr>
</thead><tbody><tr class="odd"><td align="center">
First</td>
<td align="left">
row</td>
<td align="right">
12.0</td>
<td align="left">
Example of a row that spans multiple lines.</td>
</tr>
<tr class="even"><td align="center">
Second</td>
<td align="left">
row</td>
<td align="right">
5.0</td>
<td align="left">
Here's another one. Note the blank line between rows.</td>
</tr>
</tbody></table>
<p>Table without column headers:</p>
<table><tbody><tr class="odd"><td align="right">
12</td>
<td align="left">
12</td>
<td align="center">
12</td>
<td align="right">
12</td>
</tr>
<tr class="even"><td align="right">
123</td>
<td align="left">
123</td>
<td align="center">
123</td>
<td align="right">
123</td>
</tr>
<tr class="odd"><td align="right">
1</td>
<td align="left">
1</td>
<td align="center">
1</td>
<td align="right">
1</td>
</tr>
</tbody></table>
<p>Multiline table without column headers:</p>
<table><col width="15%" /><col width="13%" /><col width="16%" /><col width="33%" /><tbody><tr class="odd"><td align="center">
First</td>
<td align="left">
row</td>
<td align="right">
12.0</td>
<td align="left">
Example of a row that spans multiple lines.</td>
</tr>
<tr class="even"><td align="center">
Second</td>
<td align="left">
row</td>
<td align="right">
5.0</td>
<td align="left">
Here's another one. Note the blank line between rows.</td>
</tr>
</tbody></table>

File diff suppressed because it is too large Load diff