@@ -161,6 +161,10 @@ <h3>Supported sources</h3>
161
161
< em > global system thermals</ em > and the < em > central [=processing unit=]</ em > , also know as the CPU.
162
162
Future levels of this specification MAY introduce additional [=source types=].
163
163
</ p >
164
+ < p >
165
+ If a [=virtual pressure source=] exists, the [=supported source types=] is equal to the
166
+ [=source types=] [=map/keys=] in the [=virtual pressure source mapping=] [=ordered map=].
167
+ </ p >
164
168
< pre class ="idl ">
165
169
enum PressureSource { "thermals", "cpu" };
166
170
</ pre >
@@ -1609,7 +1613,7 @@ <h2>
1609
1613
Automation
1610
1614
</ h2 >
1611
1615
< p >
1612
- The Compute Pressure API pose a challenge to test authors, as fully
1616
+ The Compute Pressure API poses a challenge to test authors, as fully
1613
1617
exercising interface requires physical hardware devices that respond in predictable ways.
1614
1618
1615
1619
To address this challenge this document defines a [[WEBDRIVER2]] [=extension
@@ -1671,7 +1675,7 @@ <h4>
1671
1675
</ tr >
1672
1676
</ table >
1673
1677
< p >
1674
- This [=extension command=] creates a new [=virtual pressure source=] of a certain
1678
+ This [=extension command=] creates a new [=virtual pressure source=] of a specified
1675
1679
[=source type=]. Calls to {{PressureObserver/observe()}} from {{PressureObserver}} instances
1676
1680
of the same [=source type=] will cause this [=virtual pressure source=] to be used as their
1677
1681
backing pressure source until [[[#delete-virtual-pressure-source]]] is run.
@@ -1809,6 +1813,13 @@ <h4>
1809
1813
additional [=pending state updates=] and turning on and off reporting by setting the
1810
1814
[=sample update interval=].
1811
1815
</ p >
1816
+ < aside class ="note " data-cite ="WEBDRIVER2 ">
1817
+ Additionally, the [=extension command=] can be used to check whether a source type is created
1818
+ via the [[[#create-virtual-pressure-source]]] [=extension command=] by checking the response.
1819
+ If it has not been created the response will contain the [=error=] with
1820
+ [=error code|WebDriver error code=]
1821
+ < a data-cite ="webdriver2/#dfn-unsupported-operation "> unsupported operation</ a > .
1822
+ </ aside >
1812
1823
< table class ="data ">
1813
1824
< caption >
1814
1825
Properties of the parameters argument used by this algorithm
@@ -1866,7 +1877,8 @@ <h4>
1866
1877
</ li >
1867
1878
< li >
1868
1879
If |topLevelVirtualPressureSourceMapping| does not [=map/contain=] |virtualPressureSource|,
1869
- return [=error=] with [=error code|WebDriver error code=] [=invalid argument=].
1880
+ return [=error=] with [=error code|WebDriver error code=]
1881
+ < a data-cite ="webdriver2/#dfn-unsupported-operation "> unsupported operation</ a > .
1870
1882
</ li >
1871
1883
< li >
1872
1884
Let |virtualPressureSource| be |topLevelVirtualPressureSourceMapping|[|virtualPressureSourceType|].
@@ -1904,10 +1916,10 @@ <h4>
1904
1916
If |sampleInterval| is not an Number, return [=error=] with [=error code|WebDriver error code=] [=invalid argument=].
1905
1917
</ li >
1906
1918
< li >
1907
- If |sampleInterval| is negative , stop updating the [=mock platform collector=].
1919
+ If |sampleInterval| is < 0 , stop updating the [=mock platform collector=].
1908
1920
</ li >
1909
1921
< li >
1910
- If |sampleInterval| is positive , start updating the [=mock platform collector=] each |sampleInterval| milliseconds:
1922
+ If |sampleInterval| is ≥ 0 , start updating the [=mock platform collector=] each |sampleInterval| milliseconds:
1911
1923
< ol >
1912
1924
< li >
1913
1925
Let |state| be the result of [=stack/pop|popping=] a value from [=pending state updates=].
0 commit comments