Skip to content

Commit 1b69c6b

Browse files
committed
Some fixes
1 parent 31d3f9f commit 1b69c6b

File tree

1 file changed

+26
-18
lines changed

1 file changed

+26
-18
lines changed

index.html

Lines changed: 26 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1631,7 +1631,7 @@ <h2>
16311631
a <dfn>pending state updates</dfn> [=queue=] of zero or more [=pressure states=], which is initially empty.
16321632
</li>
16331633
<li>
1634-
a <dfn>sample update interval</dfn> positive number, initially set to 0 (update immidiately).
1634+
a <dfn>sample update interval</dfn> positive number, initially set to -1 (don't update).
16351635
</li>
16361636
</ul>
16371637
</p>
@@ -1876,41 +1876,49 @@ <h4>
18761876
<a data-cite="!WEBDRIVER2#dfn-getting-properties">get a property</a> "states" from |parameters|.
18771877
</li>
18781878
<li>
1879-
If |states| is undefined or is not an Array, return [=error=] with [=error code|WebDriver error code=] [=invalid argument=].
1880-
</li>
1881-
<li>
1882-
For each |state| in |states|:
1879+
If |states| is not undefined:
18831880
<ol>
18841881
<li>
1885-
If |state| is not a [=string=] and a valid {{PressureState}}, return [=error=] with [=error code|WebDriver error code=] [=invalid argument=].
1882+
If |states| is not an Array, return [=error=] with [=error code|WebDriver error code=] [=invalid argument=].
18861883
</li>
18871884
<li>
1888-
Push |state| to |virtualPressureSource|'s [=pending state updates=].
1885+
For each |state| in |states|:
1886+
<ol>
1887+
<li>
1888+
If |state| is not a [=string=] and a valid {{PressureState}}, return [=error=] with [=error code|WebDriver error code=] [=invalid argument=].
1889+
</li>
1890+
<li>
1891+
Push |state| to |virtualPressureSource|'s [=pending state updates=].
1892+
</li>
1893+
</ol>
18891894
</li>
18901895
</ol>
1891-
</li>
18921896
<li>
18931897
Let |sampleInterval| be the result of invoking
18941898
<a data-cite="!WEBDRIVER2#dfn-getting-properties">get a property</a> "sampleInterval" from |parameters|.
18951899
</li>
18961900
<li>
1897-
If |sampleInterval| is not an Number, return [=error=] with [=error code|WebDriver error code=] [=invalid argument=].
1898-
</li>
1899-
<li>
1900-
If |sampleInterval| is negative, stop updating the [=mock platform collector=].
1901-
</li>
1902-
<li>
1903-
If |sampleInterval| is positive, start updating the [=mock platform collector=] each |sampleInterval| milliseconds:
1901+
If |sampleInterval| is not undefined:
19041902
<ol>
19051903
<li>
1906-
Let |state| be the result of [=stack/pop|popping=] a value from [=pending state updates=].
1904+
If |sampleInterval| is not an Number, return [=error=] with [=error code|WebDriver error code=] [=invalid argument=].
19071905
</li>
19081906
<li>
1909-
If |state| is not undefined, update the [=mock platform collector=] with the value, or else do nothing.
1907+
If |sampleInterval| is negative, stop updating the [=mock platform collector=].
1908+
</li>
1909+
<li>
1910+
If |sampleInterval| is positive, start updating the [=mock platform collector=] each |sampleInterval| milliseconds:
1911+
<ol>
1912+
<li>
1913+
Let |state| be the result of [=stack/pop|popping=] a value from [=pending state updates=].
1914+
</li>
1915+
<li>
1916+
If |state| is not undefined, update the [=mock platform collector=] with the value, or else do nothing.
1917+
</li>
1918+
</ol>
19101919
</li>
19111920
</ol>
19121921
</li>
1913-
</li>
19141922
<li>
19151923
Return [=success=] with data <code>null</code>.
19161924
</li>

0 commit comments

Comments
 (0)