Skip to content

Commit

Permalink
Some test suite updates
Browse files Browse the repository at this point in the history
  • Loading branch information
ganelson committed Aug 11, 2024
1 parent a73f976 commit a50b284
Show file tree
Hide file tree
Showing 15 changed files with 1,064 additions and 1,186 deletions.
2 changes: 1 addition & 1 deletion inform7/Tests/Test Basic/BIP-Gestalts-G.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ To begin:
say "Graphics window mouse input: [whether or not graphics window mouse input feature is supported][line break]";
say "Grid window mouse input: [whether or not grid window mouse input feature is supported][line break]";
say "Timers: [whether or not timers feature is supported][line break]";
say "Glk graphics: [whether or not glk graphics feature is supported][line break]";
say "Glk graphics: [whether or not graphics feature is supported][line break]";
say "Buffer window images: [whether or not buffer window graphics feature is supported][line break]";
say "Graphics window images: [whether or not graphics window graphics feature is supported][line break]";
say "Basic sounds: [whether or not basic sounds feature is supported][line break]";
Expand Down
2 changes: 1 addition & 1 deletion inform7/Tests/Test Basic/BIP-GlkSupport-G--I.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"glk version number" = version number: v0.7.5
timers feature: false.
glk graphics feature: false.
graphics feature: false.
basic sounds feature: false.
sound volume feature: false.
sound notifications feature: false.
Expand Down
32 changes: 16 additions & 16 deletions inform7/Tests/Test Internals/Index-Chart--I.txt
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
</tr>
<tr class="stripeone">
<td style="white-space:nowrap;" align="left" valign="top" height="20">
object [19]&nbsp;<a href=#A30><img border=0 src=inform:/doc_images/Below.png></a>&nbsp;&nbsp;&nbsp;&nbsp;
object [18]&nbsp;<a href=#A30><img border=0 src=inform:/doc_images/Below.png></a>&nbsp;&nbsp;&nbsp;&nbsp;
</td>
<td align="left" valign="top">
main window&nbsp;
Expand All @@ -93,7 +93,7 @@
</tr>
<tr class="stripetwo">
<td style="white-space:nowrap;" align="left" valign="top" height="20">
abstract object [4]&nbsp;<a href=#K101_abstract_object><img border=0 src=inform:/doc_images/Below.png></a>&nbsp;&nbsp;&nbsp;&nbsp;
abstract object [3]&nbsp;<a href=#K101_abstract_object><img border=0 src=inform:/doc_images/Below.png></a>&nbsp;&nbsp;&nbsp;&nbsp;
</td>
<td align="left" valign="top">
main window&nbsp;
Expand All @@ -110,7 +110,7 @@
</tr>
<tr class="stripeone">
<td style="white-space:nowrap;" align="left" valign="top" height="20">
glk window [4]&nbsp;<a href=#K102_glk_window><img border=0 src=inform:/doc_images/Below.png></a>&nbsp;&nbsp;&nbsp;&nbsp;
glk window [3]&nbsp;<a href=#K102_glk_window><img border=0 src=inform:/doc_images/Below.png></a>&nbsp;&nbsp;&nbsp;&nbsp;
</td>
<td align="left" valign="top">
main window&nbsp;
Expand Down Expand Up @@ -523,10 +523,10 @@
</tr>
<tr class="stripeone">
<td style="white-space:nowrap;" align="left" valign="top" height="20">
full glk event&nbsp;<a href=#A52><img border=0 src=inform:/doc_images/Below.png></a>&nbsp;&nbsp;&nbsp;&nbsp;
glk event&nbsp;<a href=#A49><img border=0 src=inform:/doc_images/Below.png></a>&nbsp;&nbsp;&nbsp;&nbsp;
</td>
<td align="left" valign="top">
v0.0.0&nbsp;
null event&nbsp;
</td>
<td align="center" valign="top">
<img border=0 alt="cross" src=inform:/doc_images/cross.png>&nbsp;
Expand Down Expand Up @@ -710,7 +710,7 @@
</tr>
<tr class="stripetwo">
<td style="white-space:nowrap;" align="left" valign="top" height="20">
glk event [10]&nbsp;<a href=#A49><img border=0 src=inform:/doc_images/Below.png></a>&nbsp;&nbsp;&nbsp;&nbsp;
glk event type [10]&nbsp;<a href=#A50><img border=0 src=inform:/doc_images/Below.png></a>&nbsp;&nbsp;&nbsp;&nbsp;
</td>
<td align="left" valign="top">
null event&nbsp;
Expand All @@ -727,7 +727,7 @@
</tr>
<tr class="stripeone">
<td style="white-space:nowrap;" align="left" valign="top" height="20">
glk window type [3]&nbsp;<a href=#A50><img border=0 src=inform:/doc_images/Below.png></a>&nbsp;&nbsp;&nbsp;&nbsp;
glk window type [3]&nbsp;<a href=#A51><img border=0 src=inform:/doc_images/Below.png></a>&nbsp;&nbsp;&nbsp;&nbsp;
</td>
<td align="left" valign="top">
text buffer window type&nbsp;
Expand All @@ -744,7 +744,7 @@
</tr>
<tr class="stripetwo">
<td style="white-space:nowrap;" align="left" valign="top" height="20">
text input status [9]&nbsp;<a href=#A51><img border=0 src=inform:/doc_images/Below.png></a>&nbsp;&nbsp;&nbsp;&nbsp;
text input status [9]&nbsp;<a href=#A52><img border=0 src=inform:/doc_images/Below.png></a>&nbsp;&nbsp;&nbsp;&nbsp;
</td>
<td align="left" valign="top">
inactive text input&nbsp;
Expand Down Expand Up @@ -1226,7 +1226,7 @@ conceptual, like ideas, or are needed for internal book-keeping.<br>
<i>Usually not</i> requesting hyperlink input, requesting mouse input.<br>
<i>Can have</i> window type (<i>glk window type</i>), rock number (<i>number</i>), glk window handle (<i>number</i>), text input status (<i>text input status</i>).<br>
</p>
<p class="tightin3"><span class="indexgrey">unknown window</span></p>
<p class="tightin3"></p>
<p class="halftightin4"><a name=K103_graphics_window></a><b>graphics window</b> (<i>plural</i> graphics windows)</p>
<p class="tightin4"></p>
<p class="tightin4"></p>
Expand Down Expand Up @@ -1397,7 +1397,7 @@ Whole number in the range -32768, -32767, ..., -2, -1, 0, 1, 2, 3, ..., 32767: s
<p class="tightin1"><i>Matches:</i> value, sayable value, understandable value, arithmetic value, real arithmetic value<br>
A real, or 'floating-point' number: the difference between this and ordinary "number" is that real numbers can hold values like 3.141, which aren't whole numbers, and can also hold very large or very small quantities in an approximate way. (Use of real numbers is only allowed if we compile the source to Glulx rather than the Z-machine: see the Settings panel.)<br>
</p>
<p class="halftightin1"><a name=A52></a><b>full glk event</b> (<i>plural</i> full glk events)</p>
<p class="halftightin1"><a name=A49></a><b>glk event</b> (<i>plural</i> glk events)</p>
<p class="tightin1"><i>Matches:</i> value, sayable value<br>
An input/output event created by or for the Glk interface. For example, a key having been pressed, a click or a tap, or a timer running out can all lead to Glk events.<br>
</p>
Expand Down Expand Up @@ -1442,7 +1442,7 @@ Glk features which may or may not be supported by the interpreter.<br>
<p class="in2"><table width="100%" cellpadding="6" cellspacing="0" border="0" class="indexmorebox">
<tr>
<td>
<span class="indexgrey">timers feature</span>, <span class="indexgrey">glk graphics feature</span>, <span class="indexgrey">basic sounds feature</span>, <span class="indexgrey">sound volume feature</span>, <span class="indexgrey">sound notifications feature</span>, <span class="indexgrey">hyperlinks feature</span>, <span class="indexgrey">MOD sounds feature</span>, <span class="indexgrey">PNG transparency feature</span>, <span class="indexgrey">glk unicode feature</span>, <span class="indexgrey">unicode normalization feature</span>, <span class="indexgrey">line input echo suppression feature</span>, <span class="indexgrey">line input terminators feature</span>, <span class="indexgrey">system clock feature</span>, <span class="indexgrey">extended sounds feature</span>, <span class="indexgrey">resource streams feature</span>, <span class="indexgrey">graphics window character input feature</span>, <span class="indexgrey">text formatting feature</span>, <span class="indexgrey">buffer window graphics feature</span>, <span class="indexgrey">graphics window graphics feature</span>, <span class="indexgrey">buffer window hyperlinks feature</span>, <span class="indexgrey">grid window hyperlinks feature</span>, <span class="indexgrey">graphics window mouse input feature</span>, <span class="indexgrey">grid window mouse input feature</span>
<span class="indexgrey">timers feature</span>, <span class="indexgrey">graphics feature</span>, <span class="indexgrey">basic sounds feature</span>, <span class="indexgrey">sound volume feature</span>, <span class="indexgrey">sound notifications feature</span>, <span class="indexgrey">hyperlinks feature</span>, <span class="indexgrey">MOD sounds feature</span>, <span class="indexgrey">PNG transparency feature</span>, <span class="indexgrey">glk unicode feature</span>, <span class="indexgrey">unicode normalization feature</span>, <span class="indexgrey">line input echo suppression feature</span>, <span class="indexgrey">line input terminators feature</span>, <span class="indexgrey">system clock feature</span>, <span class="indexgrey">extended sounds feature</span>, <span class="indexgrey">resource streams feature</span>, <span class="indexgrey">graphics window character input feature</span>, <span class="indexgrey">text formatting feature</span>, <span class="indexgrey">buffer window graphics feature</span>, <span class="indexgrey">graphics window graphics feature</span>, <span class="indexgrey">buffer window hyperlinks feature</span>, <span class="indexgrey">grid window hyperlinks feature</span>, <span class="indexgrey">graphics window mouse input feature</span>, <span class="indexgrey">grid window mouse input feature</span>
</td>
</tr>
</table>
Expand All @@ -1454,10 +1454,10 @@ Glk features which may or may not be supported by the interpreter.<br>
Glulx features which may or may not be supported by the interpreter.<br>
<p class="tightin1"><span class="indexgrey">memory resizing feature</span>, <span class="indexgrey">undo feature</span>, <span class="indexgrey">glulx unicode feature</span>, <span class="indexgrey">memory copying feature</span>, <span class="indexgrey">memory allocations feature</span>, <span class="indexgrey">glulx acceleration feature</span>, <span class="indexgrey">real numbers feature</span>, <span class="indexgrey">extended undo feature</span>, <span class="indexgrey">double precision real numbers feature</span></p>
</p>
<p class="halftightin1"><a name=A49></a><b>glk event</b> (<i>plural</i> glk events)</p>
<p class="halftightin1"><a name=A50></a><b>glk event type</b> (<i>plural</i> glk event types)</p>
<p class="tightin1"><i>Matches:</i> value, sayable value, understandable value, enumerated value<br>
A Glk event sent from the interpreter.<br>
<p class="tightin1"><a href="#" onclick="showExtra('extra2', 'plus2'); return false;"><img border=0 id="plus2" src=inform:/doc_images/extra.png></a>&nbsp;<span class="indexgrey">10 glk events</span></p>
Type of a Glk event.<br>
<p class="tightin1"><a href="#" onclick="showExtra('extra2', 'plus2'); return false;"><img border=0 id="plus2" src=inform:/doc_images/extra.png></a>&nbsp;<span class="indexgrey">10 glk event types</span></p>
<div id="extra2" style="display: none;">
<p class="in2"><table width="100%" cellpadding="6" cellspacing="0" border="0" class="indexmorebox">
<tr>
Expand All @@ -1469,12 +1469,12 @@ A Glk event sent from the interpreter.<br>
</p>
</div>
</p>
<p class="halftightin1"><a name=A50></a><b>glk window type</b> (<i>plural</i> glk window types)</p>
<p class="halftightin1"><a name=A51></a><b>glk window type</b> (<i>plural</i> glk window types)</p>
<p class="tightin1"><i>Matches:</i> value, sayable value, understandable value, enumerated value<br>
Type of a Glk window.<br>
<p class="tightin1"><span class="indexgrey">text buffer window type</span>, <span class="indexgrey">text grid window type</span>, <span class="indexgrey">graphics window type</span></p>
</p>
<p class="halftightin1"><a name=A51></a><b>text input status</b> (<i>plural</i> text input statuses)</p>
<p class="halftightin1"><a name=A52></a><b>text input status</b> (<i>plural</i> text input statuses)</p>
<p class="tightin1"><i>Matches:</i> value, sayable value, understandable value, enumerated value<br>
The current text input status of a Glk window.<br>
<p class="tightin1"><span class="indexgrey">inactive text input</span>, <span class="indexgrey">active line input</span>, <span class="indexgrey">active unicode line input</span>, <span class="indexgrey">active character input</span>, <span class="indexgrey">active unicode character input</span>, <span class="indexgrey">suspended line input</span>, <span class="indexgrey">suspended unicode line input</span>, <span class="indexgrey">suspended character input</span>, <span class="indexgrey">suspended unicode character input</span></p>
Expand Down
34 changes: 11 additions & 23 deletions inform7/Tests/Test Internals/Index-Map-Ahoy--I.txt
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
<table border="1" cellpadding="0" cellspacing="0" class="indexmaproom" width="27" height="27" title="Spirit Room">
<tr>
<td valign="middle" align="center" bgcolor="#D3D3D3">
<span class="indexblack"><a href=#wo_22 style="text-decoration: none"><span class="indexblack">SR</span></a></span>
<span class="indexblack"><a href=#wo_21 style="text-decoration: none"><span class="indexblack">SR</span></a></span>
</td>
</tr>
</table>
Expand Down Expand Up @@ -237,7 +237,7 @@
<table border="2" cellpadding="0" cellspacing="0" class="indexmaproom" width="27" height="27" title="Fish Room">
<tr>
<td valign="middle" align="center" bgcolor="#D3D3D3">
<span class="indexblack"><a href=#wo_21 style="text-decoration: none"><span class="indexblack"><b>FR</b></span></a></span>
<span class="indexblack"><a href=#wo_20 style="text-decoration: none"><span class="indexblack"><b>FR</b></span></a></span>
</td>
</tr>
</table>
Expand Down Expand Up @@ -292,7 +292,7 @@
<table border="1" cellpadding="0" cellspacing="0" class="indexmaproom" width="27" height="27" title="After Powder Magazine">
<tr>
<td valign="middle" align="center" bgcolor="#D3D3D3">
<span class="indexblack"><a href=#wo_23 style="text-decoration: none"><span class="indexblack">AP</span></a></span>
<span class="indexblack"><a href=#wo_22 style="text-decoration: none"><span class="indexblack">AP</span></a></span>
</td>
</tr>
</table>
Expand Down Expand Up @@ -452,7 +452,7 @@
<table border="1" cellpadding="0" cellspacing="0" class="indexmaproom" width="27" height="27" title="Bread Room">
<tr>
<td valign="middle" align="center" bgcolor="#D3D3D3">
<span class="indexblack"><a href=#wo_24 style="text-decoration: none"><span class="indexblack">BR</span></a></span>
<span class="indexblack"><a href=#wo_23 style="text-decoration: none"><span class="indexblack">BR</span></a></span>
</td>
</tr>
</table>
Expand Down Expand Up @@ -538,7 +538,7 @@
<!-- WORLD WRITE MAP ENDS -->
<a name=MDETAILS></a>

<p><a name=fi21></a><a name=wo_21><table border="0" cellspacing="0" cellpadding="0">
<p><a name=fi20></a><a name=wo_20><table border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="left" valign="top">

Expand Down Expand Up @@ -680,7 +680,7 @@
<hr>


<p><a name=fi22></a><a name=wo_22><table border="0" cellspacing="0" cellpadding="0">
<p><a name=fi21></a><a name=wo_21><table border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="left" valign="top">

Expand Down Expand Up @@ -806,7 +806,7 @@
<hr>


<p><a name=fi23></a><a name=wo_23><table border="0" cellspacing="0" cellpadding="0">
<p><a name=fi22></a><a name=wo_22><table border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="left" valign="top">

Expand Down Expand Up @@ -933,7 +933,7 @@
<hr>


<p><a name=fi24></a><a name=wo_24><table border="0" cellspacing="0" cellpadding="0">
<p><a name=fi23></a><a name=wo_23><table border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="left" valign="top">

Expand Down Expand Up @@ -1062,7 +1062,7 @@
<p class="in3"><table width="100%" cellpadding="6" cellspacing="0" border="0" class="indexmorebox">
<tr>
<td>
<p class="tightin1">abstract object &gt; glk window &gt; text buffer window &gt; <b>main window</b></p>
<p class="tightin1">abstract object &gt; Glk window &gt; text buffer window &gt; <b>main window</b></p>
<p class="hangingin1">printed name: <span class="indexdullblue">"main window"</span>&nbsp;<a href="source:story.ni#line11"><img border=0 src=inform:/doc_images/Reveal.png></a></p>

</td>
Expand All @@ -1074,7 +1074,7 @@
<p class="in3"><table width="100%" cellpadding="6" cellspacing="0" border="0" class="indexmorebox">
<tr>
<td>
<p class="tightin1">abstract object &gt; glk window &gt; text grid window &gt; <b>status window</b></p>
<p class="tightin1">abstract object &gt; Glk window &gt; text grid window &gt; <b>status window</b></p>
<p class="hangingin1">printed name: <span class="indexdullblue">"status window"</span>&nbsp;<a href="source:story.ni#line11"><img border=0 src=inform:/doc_images/Reveal.png></a></p>

</td>
Expand All @@ -1086,24 +1086,12 @@
<p class="in3"><table width="100%" cellpadding="6" cellspacing="0" border="0" class="indexmorebox">
<tr>
<td>
<p class="tightin1">abstract object &gt; glk window &gt; text buffer window &gt; <b>quote window</b></p>
<p class="tightin1">abstract object &gt; Glk window &gt; text buffer window &gt; <b>quote window</b></p>
<p class="hangingin1">printed name: <span class="indexdullblue">"quote window"</span>&nbsp;<a href="source:story.ni#line11"><img border=0 src=inform:/doc_images/Reveal.png></a></p>

</td>
</tr>
</table>
</p>
</div>
<a href="#" onclick="showExtra('extra8', 'plus8'); return false;"><img border=0 id="plus8" src=inform:/doc_images/extra.png></a>&nbsp;unknown window - <i>glk window</i><div id="extra8" style="display: none;">
<p class="in3"><table width="100%" cellpadding="6" cellspacing="0" border="0" class="indexmorebox">
<tr>
<td>
<p class="tightin1">abstract object &gt; glk window &gt; <b>unknown window</b></p>
<p class="hangingin1">printed name: <span class="indexdullblue">"unknown window"</span>&nbsp;<a href="source:story.ni#line11"><img border=0 src=inform:/doc_images/Reveal.png></a></p>

</td>
</tr>
</table>
</p>
</div>

Loading

0 comments on commit a50b284

Please sign in to comment.