Skip to content

Commit 641896c

Browse files
shs96cAutomatedTester
authored andcommitted
Specify how to deserialize as a timeout
Closes #636
1 parent 5441d39 commit 641896c

File tree

1 file changed

+29
-6
lines changed

1 file changed

+29
-6
lines changed

webdriver-spec.html

Lines changed: 29 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2755,27 +2755,50 @@ <h3>Set Timeouts</h3>
27552755
</tr>
27562756
</table>
27572757

2758-
<p>The <a>remote end steps</a> are:
2758+
<p>The steps to <dfn>deserialize as a timeout</dfn> with
2759+
argument <var>parameters</var> are:
27592760

27602761
<ol>
27612762
<li><p>If <var>parameters</var> is not a JSON <a>Object</a>,
27622763
return <a>error</a> with <a>error code</a> <a>invalid argument</a>.
27632764

2764-
<li><p>For each enumerable <a>own property</a> in <var>parameters</var>:
2765+
<li><p>For each enumerable <a>own property</a>
2766+
in <var>parameters</var>, run the following substeps:
27652767
<ol>
2766-
<li><p>Let <var>key</var> be the name of the property,
2767-
and <var>value</var> be the result of <a>getting a property</a>
2768-
named <var>name</var> from <var>parameters</var>.
2768+
<li><p>Let <var>name</var> be the name of the property.
2769+
2770+
<li><p>Let <var>value</var> be the result of <a>getting a
2771+
property</a> named <var>name</var> from <var>parameters</var>.
27692772

27702773
<li><p>Find the <var>timeout type</var> from the <a>table of session timeouts</a>
27712774
by looking it up by its keyword <var>key</var>.
27722775

27732776
<p>If no keyword matches <var>key</var>,
27742777
return <a>error</a> with <a>error code</a> <a>invalid argument</a>.
27752778

2776-
<li><p>If <var>value</var> is not an integer,
2779+
<li><p>If <var>value</var> is not an <a>integer</a>,
27772780
or it is less than 0 or greater than 2<sup>64</sup> – 1,
27782781
return <a>error</a> with <a>error code</a> <a>invalid argument</a>.
2782+
</ol>
2783+
2784+
<li><p>Return <a>success</a> with data <var>parameters</var>.
2785+
</ol>
2786+
2787+
<p>The <a>remote end steps</a> are:
2788+
2789+
<ol>
2790+
<li>Let <var>parameters</var> be the result of <a>trying</a>
2791+
to <a>deserialize as a timeout</a> <var>parameters</var>.
2792+
2793+
<li><p>For each enumerable <a>own property</a> in <var>parameters</var>:
2794+
<ol>
2795+
<li><p>Let <var>key</var> be the name of the property.
2796+
2797+
<li><p>Let <var>value</var> be the result of <a>getting a property</a>
2798+
named <var>name</var> from <var>parameters</var>.
2799+
2800+
<li><p>Find the <var>timeout type</var> from the <a>table of session timeouts</a>
2801+
by looking it up by its keyword <var>key</var>.
27792802

27802803
<li><p>Set <var>timeout type</var>’s <var>value</var>.
27812804
</ol>

0 commit comments

Comments
 (0)