Skip to content

Commit 0d64fa7

Browse files
authored
Add description for %test:assumeInternetAccess
1 parent ade785b commit 0d64fa7

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/main/xar-resources/data/xqsuite/xqsuite.xml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,17 @@
153153
contains a reference to the result sequence returned by the tested function.</para>
154154
</listitem>
155155
</varlistentry>
156+
<varlistentry>
157+
<term><code>%test:assumeIntenetAccess($uri)</code></term>
158+
<listitem>
159+
<para>Marks that a test <emphasis>assumes</emphasis> that Internet access is available.
160+
If the <code>$uri</code> can be reached over HTTP via a HEAD request, then the test
161+
will be executed as part of the test suite. If the connection to the <code>$uri</code>
162+
cannot be made, then the test has the same status as a test marked with
163+
<code>%test:pending</code>. This can be useful when you have a test which relies on an
164+
external resource.</para>
165+
</listitem>
166+
</varlistentry>
156167
<varlistentry>
157168
<term><code>%test:pending</code></term>
158169
<listitem>

0 commit comments

Comments
 (0)