Skip to content
This repository was archived by the owner on Apr 22, 2020. It is now read-only.

Commit 6f4bf70

Browse files
author
mikesamuel@gmail.com
committed
Modified tests to avoid CRLF problems in getting test golden
1 parent e14b5c8 commit 6f4bf70

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

js-modules/extractSourceSpans_test.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
.ok { background: #dfd }
88
.error, .failure { background: #fdd }
99
td { font-family: monospace }
10-
.golden, .actual { white-space: pre }
10+
.actual { white-space: pre }
1111
tr { vertical-align: top }
1212
.break { padding-left: 2px; border-right-style: dotted !important }
1313
.odd, .even { border-style: solid; border-width: 1px }
@@ -23,35 +23,35 @@ <h1>Extract Source Spans Test</h1>
2323
<tr><th colspan=3>Test space preserved in PRE</th></tr>
2424
<tr>
2525
<td><pre class="testinput"><b>print </b>'Hello '<br> + '&lt;World&gt;';</pre></td>
26-
<td class="golden">^print ^'Hello '^\n^ + '&lt;World&gt;';^</td>
26+
<td class="golden"><pre>^print ^'Hello '^\n^ + '&lt;World&gt;';^</pre></td>
2727
</tr>
2828
<tr><th colspan=3>Test class="nocode"</th></tr>
2929
<tr>
3030
<td><pre class="testinput"><span class=nocode>1. </span><b>print </b>'Hello '<br><span class=nocode>2. </span> + '&lt;World&gt;';</pre></td>
31-
<td class="golden">^print ^'Hello '^\n^ + '&lt;World&gt;';^</td>
31+
<td class="golden"><pre>^print ^'Hello '^\n^ + '&lt;World&gt;';^</pre></td>
3232
</tr>
3333
<tr><th colspan=3>Test whitespace normalized in code</th></tr>
3434
<tr>
3535
<td><code class="testinput"><b>print </b>'Hello '
3636
+ '&lt;World&gt;';</pre></td>
37-
<td class="golden">^print ^'Hello ' + '&lt;World&gt;';^</td>
37+
<td class="golden"><pre>^print ^'Hello ' + '&lt;World&gt;';^</pre></td>
3838
</tr>
3939
<tr><th colspan=3>Test XMP</th></tr>
4040
<tr>
4141
<td><xmp class="testinput">print 'Hello '
4242
+ '<World>';</xmp></td>
43-
<td class="golden">^print 'Hello '\n + '&lt;World&gt;';^</td>
43+
<td class="golden"><pre>^print 'Hello '\n + '&lt;World&gt;';^</pre></td>
4444
</tr>
4545
<tr><th colspan=3>Test tabs</th></tr>
4646
<tr>
4747
<td><pre class="testinput">print 'Hello '
4848
&#9;+ '&lt;World&gt;';</pre></td>
49-
<td class="golden">^print 'Hello '\n\t+ '&lt;World&gt;';^</td>
49+
<td class="golden"><pre>^print 'Hello '\n\t+ '&lt;World&gt;';^</pre></td>
5050
</tr>
5151
<tr><th colspan=3>Test number lines output</th></tr>
5252
<tr>
5353
<td><pre class="testinput"><ul><li><b>print </b>'Hello '</li><li> + '&lt;World&gt;';</pre></li></ul></td>
54-
<td class="golden">^print ^'Hello '^\n^ + '&lt;World&gt;';^^</td>
54+
<td class="golden"><pre>^print ^'Hello '^\n^ + '&lt;World&gt;';^^</pre></td>
5555
</tr>
5656
</table>
5757

@@ -125,5 +125,5 @@ <h1>Extract Source Spans Test</h1>
125125

126126
<hr>
127127
<address></address>
128-
<!-- hhmts start --> Last modified: Tue Mar 29 16:18:54 PDT 2011 <!-- hhmts end -->
128+
<!-- hhmts start --> Last modified: Tue Mar 29 16:21:19 PDT 2011 <!-- hhmts end -->
129129
</body> </html>

0 commit comments

Comments
 (0)