Skip to content

Commit 7dd0631

Browse files
committed
Add automation support for ownContributionEstimate
1 parent 35c3d54 commit 7dd0631

File tree

1 file changed

+40
-6
lines changed

1 file changed

+40
-6
lines changed

index.html

Lines changed: 40 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -298,8 +298,11 @@ <h3>Sampling and Reporting Rate</h3>
298298
<ul>
299299
<li>
300300
<dfn data-dfn-for="pressure source sample">data</dfn>: [=contributing
301-
factors=] obtained from the underlying hardware or operating system or,
302-
in the case of a [=virtual pressure source=], a {{PressureState}}.
301+
factors=] obtained from the underlying hardware and operating system or,
302+
in the case of a [=virtual pressure source=], a {{PressureState}}
303+
<span class="experimental">
304+
and a {{double?}} representing the {{PressureRecord/ownContributionEstimate}}
305+
</span>.
303306
</li>
304307
<li>
305308
<dfn data-dfn-for="pressure source sample">timestamp</dfn>: the
@@ -555,8 +558,12 @@ <h3>
555558

556559
<section> <h2>Contributing Factors</h2>
557560
<p>
558-
<dfn>Contributing factors</dfn> represent the underlying hardware metrics contributing to the current [=pressure state=]
559-
and can be [=implementation-defined=].
561+
<dfn>Contributing factors</dfn> represent the underlying hardware and operation system metrics contributing to the
562+
current [=pressure state=] and can be [=implementation-defined=].
563+
<span class="experimental">
564+
These may include information about how the metrics relate to operation system processes, allowing an
565+
implementation to estimate the site's contribution to the overall pressure.
566+
</span>
560567
</p>
561568
<p>
562569
The <dfn>adjusted pressure state</dfn> is a [=pressure state=] determined by an [=implementation-defined=]
@@ -1459,7 +1466,10 @@ <h3>Data Collection and Delivery</h3>
14591466
If |pressureSource| is a [=virtual pressure source=]:
14601467
<ol>
14611468
<li>
1462-
Set |state| to |sample|'s [=pressure source sample/data=].
1469+
Set |state| to the {{PressureState}} stored in |sample|'s [=pressure source sample/data=].
1470+
</li>
1471+
<li class="experimental">
1472+
Set |ownContributionEstimate| to the {{double?}} stored in |sample|'s [=pressure source sample/data=].
14631473
</li>
14641474
</ol>
14651475
</li>
@@ -2305,6 +2315,17 @@ <h4>
23052315
yes
23062316
</td>
23072317
</tr>
2318+
<tr class="experimental">
2319+
<td>
2320+
ownContributionEstimate
2321+
</td>
2322+
<td>
2323+
{{double}}
2324+
</td>
2325+
<td>
2326+
no
2327+
</td>
2328+
</tr>
23082329
</table>
23092330
<p>
23102331
The [=remote end steps=] given |session|, |URL variables| and |parameters| are:
@@ -2340,10 +2361,23 @@ <h4>
23402361
<li>
23412362
If |sample| is not of type {{PressureState}}, return [=error=] with [=error code|WebDriver error code=] [=invalid argument=].
23422363
</li>
2364+
<li class="experimental">
2365+
Let |ownContributionEstimate| be the result of invoking
2366+
<a data-cite="!WEBDRIVER2#dfn-getting-properties">get a property with default</a> with arguments "ownContributionEstimate" and null from |parameters|.
2367+
</li>
2368+
<li class="experimental">
2369+
If |ownContributionEstimate| is not of type {{double?}}, return [=error=] with [=error code|WebDriver error code=] [=invalid argument=].
2370+
</li>
23432371
<li>
23442372
Set |virtualPressureSource|'s [=pressure source/latest sample=] to a new
23452373
[=pressure source sample=] whose [=pressure source sample/data=] is
2346-
|sample| and [=pressure source sample/timestamp=] is the [=unsafe shared
2374+
<span class="experimental">
2375+
a tuple of |sample| and |ownContributionEstimate|,
2376+
</span>
2377+
<span class="non-experimental">
2378+
|sample|
2379+
</span>
2380+
and [=pressure source sample/timestamp=] is the [=unsafe shared
23472381
current time=].
23482382
</li>
23492383
<li>

0 commit comments

Comments
 (0)