You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<h2>The <code>scenario</code> element</h2><dlclass="element"><dt>Content model:</dt><dd><ahref="#the-documentation-element"><code>documentation</code></a><smalltitle="optional">?</small></dd><dd><ahref="#the-call-element"><code>call</code></a><smalltitle="optional">?</small></dd><dd><ahref="#the-scenario-element"><code>scenario</code></a><smalltitle="zero or more">*</small></dd><dd><ahref="#the-pending-element"><code>pending</code></a><smalltitle="zero or more">*</small></dd><dd><ahref="#the-context-element"><code>context</code></a><smalltitle="zero or more">*</small></dd><dd><ahref="#the-expect-element"><code>expect</code></a><smalltitle="zero or more">*</small></dd><dt>Content attributes:</dt><dd><ahref="#attr-scenario-focus"><code>focus</code></a><smalltitle="optional">?</small></dd><dd><ahref="#attr-scenario-label"><code>label</code></a></dd><dd>Zero or more attributes from any namespace.</dd></dl>
138
+
<h2>The <code>scenario</code> element</h2><dlclass="element"><dt>Content model:</dt><dd><ahref="#the-documentation-element"><code>documentation</code></a><smalltitle="optional">?</small></dd><dd><ahref="#the-call-element"><code>call</code></a><smalltitle="optional">?</small></dd><dd><ahref="#the-scenario-element"><code>scenario</code></a><smalltitle="zero or more">*</small></dd><dd><ahref="#the-pending-element"><code>pending</code></a><smalltitle="zero or more">*</small></dd><dd><ahref="#the-context-element"><code>context</code></a><smalltitle="zero or more">*</small></dd><dd><ahref="#the-expect-element"><code>expect</code></a><smalltitle="zero or more">*</small></dd><dt>Content attributes:</dt><dd><ahref="#attr-scenario-focus"><code>focus</code></a><smalltitle="optional">?</small></dd><dd><ahref="#attr-scenario-label"><code>label</code></a></dd><dd><ahref="#attr-scenario-xfail"><code>xfail</code></a><smalltitle="optional">?</small></dd><dd>Zero or more attributes from any namespace.</dd></dl>
139
139
<p>
140
140
A scenario groups together the definition of the script environment
141
141
(the <ahref="#the-call-element"><code>call</code></a> element) and the script assertions (the <ahref="#the-context-element"><code>context</code></a> and
reported. When present, only that assertion or scenario will be evaluated.
152
152
Its content describes why you are focusing on this particular assertion or scenario.</p>
153
153
<pid="attr-scenario-label">The <ahref="#attr-scenario-label"><code>label</code></a> attribute is used to describe the current element in human-readable words.</p>
154
+
<pid="attr-scenario-xfail">Assertions with the <ahref="#attr-scenario-xfail"><code>xfail</code></a> attribute will behave just like other assertions, but
155
+
will succeed where other assertions fail, and will fail where other assertions succeed (i.e. the result is inverted).
156
+
The <ahref="#attr-scenario-xfail"><code>xfail</code></a> attribute can also be applied to scenarios, in which case <code>xfail</code> will be implicitly
157
+
set to <code>true</code> for all of the scenarios assertions.
158
+
The value of the <ahref="#attr-scenario-xfail"><code>xfail</code></a> attribute must be <code>true</code>.</p>
<h2>The <code>expect</code> element</h2><dlclass="element"><dt>Content model:</dt><dd><ahref="#the-document-element"><code>document</code></a><smalltitle="zero or more">*</small></dd><dd><ahref="#the-documentation-element"><code>documentation</code></a><smalltitle="zero or more">*</small></dd><dt>Content attributes:</dt><dd><ahref="#attr-expect-equals"><code>equals</code></a><smalltitle="optional">?</small></dd><dd><ahref="#attr-expect-focus"><code>focus</code></a><smalltitle="optional">?</small></dd><dd><ahref="#attr-expect-grammar"><code>grammar</code></a><smalltitle="optional">?</small></dd><dd><ahref="#attr-expect-href"><code>href</code></a><smalltitle="optional">?</small></dd><dd><ahref="#attr-expect-label"><code>label</code></a><smalltitle="optional">?</small></dd><dd><ahref="#attr-expect-max"><code>max</code></a><smalltitle="optional">?</small></dd><dd><ahref="#attr-expect-min"><code>min</code></a><smalltitle="optional">?</small></dd><dd><ahref="#attr-expect-normalize-space"><code>normalize-space</code></a><smalltitle="optional">?</small></dd><dd><ahref="#attr-expect-pending"><code>pending</code></a><smalltitle="optional">?</small></dd><dd><ahref="#attr-expect-step"><code>step</code></a><smalltitle="optional">?</small></dd><dd><ahref="#attr-expect-test"><code>test</code></a><smalltitle="optional">?</small></dd><dd><ahref="#attr-expect-type"><code>type</code></a><smalltitle="optional">?</small></dd><dd>Zero or more attributes from any namespace.</dd></dl>
200
+
<h2>The <code>expect</code> element</h2><dlclass="element"><dt>Content model:</dt><dd><ahref="#the-document-element"><code>document</code></a><smalltitle="zero or more">*</small></dd><dd><ahref="#the-documentation-element"><code>documentation</code></a><smalltitle="zero or more">*</small></dd><dt>Content attributes:</dt><dd><ahref="#attr-expect-equals"><code>equals</code></a><smalltitle="optional">?</small></dd><dd><ahref="#attr-expect-focus"><code>focus</code></a><smalltitle="optional">?</small></dd><dd><ahref="#attr-expect-grammar"><code>grammar</code></a><smalltitle="optional">?</small></dd><dd><ahref="#attr-expect-href"><code>href</code></a><smalltitle="optional">?</small></dd><dd><ahref="#attr-expect-label"><code>label</code></a><smalltitle="optional">?</small></dd><dd><ahref="#attr-expect-max"><code>max</code></a><smalltitle="optional">?</small></dd><dd><ahref="#attr-expect-min"><code>min</code></a><smalltitle="optional">?</small></dd><dd><ahref="#attr-expect-normalize-space"><code>normalize-space</code></a><smalltitle="optional">?</small></dd><dd><ahref="#attr-expect-pending"><code>pending</code></a><smalltitle="optional">?</small></dd><dd><ahref="#attr-expect-step"><code>step</code></a><smalltitle="optional">?</small></dd><dd><ahref="#attr-expect-test"><code>test</code></a><smalltitle="optional">?</small></dd><dd><ahref="#attr-expect-type"><code>type</code></a><smalltitle="optional">?</small></dd><dd><ahref="#attr-expect-xfail"><code>xfail</code></a><smalltitle="optional">?</small></dd><dd>Zero or more attributes from any namespace.</dd></dl>
196
201
<p>
197
202
Defines what is expected from the context document(s).
<h3aria-level="2" role="heading" id="h3_the-scenario-element"><spanclass="secno">1.5 </span>The <code>scenario</code> element</h3><dlclass="element"><dt>Content model:</dt><dd><ahref="#the-documentation-element"><code>documentation</code></a><smalltitle="optional">?</small></dd><dd><ahref="#the-call-element"><code>call</code></a><smalltitle="optional">?</small></dd><dd><ahref="#the-scenario-element"><code>scenario</code></a><smalltitle="zero or more">*</small></dd><dd><ahref="#the-pending-element"><code>pending</code></a><smalltitle="zero or more">*</small></dd><dd><ahref="#the-context-element"><code>context</code></a><smalltitle="zero or more">*</small></dd><dd><ahref="#the-expect-element"><code>expect</code></a><smalltitle="zero or more">*</small></dd><dt>Content attributes:</dt><dd><ahref="#attr-scenario-focus"><code>focus</code></a><smalltitle="optional">?</small></dd><dd><ahref="#attr-scenario-label"><code>label</code></a></dd><dd>Zero or more attributes from any namespace.</dd></dl>
292
+
<h3aria-level="2" role="heading" id="h3_the-scenario-element"><spanclass="secno">1.5 </span>The <code>scenario</code> element</h3><dlclass="element"><dt>Content model:</dt><dd><ahref="#the-documentation-element"><code>documentation</code></a><smalltitle="optional">?</small></dd><dd><ahref="#the-call-element"><code>call</code></a><smalltitle="optional">?</small></dd><dd><ahref="#the-scenario-element"><code>scenario</code></a><smalltitle="zero or more">*</small></dd><dd><ahref="#the-pending-element"><code>pending</code></a><smalltitle="zero or more">*</small></dd><dd><ahref="#the-context-element"><code>context</code></a><smalltitle="zero or more">*</small></dd><dd><ahref="#the-expect-element"><code>expect</code></a><smalltitle="zero or more">*</small></dd><dt>Content attributes:</dt><dd><ahref="#attr-scenario-focus"><code>focus</code></a><smalltitle="optional">?</small></dd><dd><ahref="#attr-scenario-label"><code>label</code></a></dd><dd><ahref="#attr-scenario-xfail"><code>xfail</code></a><smalltitle="optional">?</small></dd><dd>Zero or more attributes from any namespace.</dd></dl>
293
293
<p>
294
294
A scenario groups together the definition of the script environment
295
295
(the <ahref="#the-call-element"><code>call</code></a> element) and the script assertions (the <ahref="#the-context-element"><code>context</code></a> and
reported. When present, only that assertion or scenario will be evaluated.
306
306
Its content describes why you are focusing on this particular assertion or scenario.</p>
307
307
<pid="attr-scenario-label">The <ahref="#attr-scenario-label"><code>label</code></a> attribute is used to describe the current element in human-readable words.</p>
308
+
<pid="attr-scenario-xfail">Assertions with the <ahref="#attr-scenario-xfail"><code>xfail</code></a> attribute will behave just like other assertions, but
309
+
will succeed where other assertions fail, and will fail where other assertions succeed (i.e. the result is inverted).
310
+
The <ahref="#attr-scenario-xfail"><code>xfail</code></a> attribute can also be applied to scenarios, in which case <code>xfail</code> will be implicitly
311
+
set to <code>true</code> for all of the scenarios assertions.
312
+
The value of the <ahref="#attr-scenario-xfail"><code>xfail</code></a> attribute must be <code>true</code>.</p>
<h3aria-level="2" role="heading" id="h3_the-expect-element"><spanclass="secno">1.9 </span>The <code>expect</code> element</h3><dlclass="element"><dt>Content model:</dt><dd><ahref="#the-document-element"><code>document</code></a><smalltitle="zero or more">*</small></dd><dd><ahref="#the-documentation-element"><code>documentation</code></a><smalltitle="zero or more">*</small></dd><dt>Content attributes:</dt><dd><ahref="#attr-expect-equals"><code>equals</code></a><smalltitle="optional">?</small></dd><dd><ahref="#attr-expect-focus"><code>focus</code></a><smalltitle="optional">?</small></dd><dd><ahref="#attr-expect-grammar"><code>grammar</code></a><smalltitle="optional">?</small></dd><dd><ahref="#attr-expect-href"><code>href</code></a><smalltitle="optional">?</small></dd><dd><ahref="#attr-expect-label"><code>label</code></a><smalltitle="optional">?</small></dd><dd><ahref="#attr-expect-max"><code>max</code></a><smalltitle="optional">?</small></dd><dd><ahref="#attr-expect-min"><code>min</code></a><smalltitle="optional">?</small></dd><dd><ahref="#attr-expect-normalize-space"><code>normalize-space</code></a><smalltitle="optional">?</small></dd><dd><ahref="#attr-expect-pending"><code>pending</code></a><smalltitle="optional">?</small></dd><dd><ahref="#attr-expect-step"><code>step</code></a><smalltitle="optional">?</small></dd><dd><ahref="#attr-expect-test"><code>test</code></a><smalltitle="optional">?</small></dd><dd><ahref="#attr-expect-type"><code>type</code></a><smalltitle="optional">?</small></dd><dd>Zero or more attributes from any namespace.</dd></dl>
354
+
<h3aria-level="2" role="heading" id="h3_the-expect-element"><spanclass="secno">1.9 </span>The <code>expect</code> element</h3><dlclass="element"><dt>Content model:</dt><dd><ahref="#the-document-element"><code>document</code></a><smalltitle="zero or more">*</small></dd><dd><ahref="#the-documentation-element"><code>documentation</code></a><smalltitle="zero or more">*</small></dd><dt>Content attributes:</dt><dd><ahref="#attr-expect-equals"><code>equals</code></a><smalltitle="optional">?</small></dd><dd><ahref="#attr-expect-focus"><code>focus</code></a><smalltitle="optional">?</small></dd><dd><ahref="#attr-expect-grammar"><code>grammar</code></a><smalltitle="optional">?</small></dd><dd><ahref="#attr-expect-href"><code>href</code></a><smalltitle="optional">?</small></dd><dd><ahref="#attr-expect-label"><code>label</code></a><smalltitle="optional">?</small></dd><dd><ahref="#attr-expect-max"><code>max</code></a><smalltitle="optional">?</small></dd><dd><ahref="#attr-expect-min"><code>min</code></a><smalltitle="optional">?</small></dd><dd><ahref="#attr-expect-normalize-space"><code>normalize-space</code></a><smalltitle="optional">?</small></dd><dd><ahref="#attr-expect-pending"><code>pending</code></a><smalltitle="optional">?</small></dd><dd><ahref="#attr-expect-step"><code>step</code></a><smalltitle="optional">?</small></dd><dd><ahref="#attr-expect-test"><code>test</code></a><smalltitle="optional">?</small></dd><dd><ahref="#attr-expect-type"><code>type</code></a><smalltitle="optional">?</small></dd><dd><ahref="#attr-expect-xfail"><code>xfail</code></a><smalltitle="optional">?</small></dd><dd>Zero or more attributes from any namespace.</dd></dl>
350
355
<p>
351
356
Defines what is expected from the context document(s).
0 commit comments