Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add automation support for ownContributionEstimate #305

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 40 additions & 6 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,11 @@ <h3>Sampling and Reporting Rate</h3>
<ul>
<li>
<dfn data-dfn-for="pressure source sample">data</dfn>: [=contributing
factors=] obtained from the underlying hardware or operating system or,
in the case of a [=virtual pressure source=], a {{PressureState}}.
factors=] obtained from the underlying hardware and operating system or,
in the case of a [=virtual pressure source=], a {{PressureState}}
<span class="experimental">
and a {{double?}} representing the {{PressureRecord/ownContributionEstimate}}
</span>.
</li>
<li>
<dfn data-dfn-for="pressure source sample">timestamp</dfn>: the
Expand Down Expand Up @@ -555,8 +558,12 @@ <h3>

<section> <h2>Contributing Factors</h2>
<p>
<dfn>Contributing factors</dfn> represent the underlying hardware metrics contributing to the current [=pressure state=]
and can be [=implementation-defined=].
<dfn>Contributing factors</dfn> represent the underlying hardware and operation system metrics contributing to the
current [=pressure state=] and can be [=implementation-defined=].
<span class="experimental">
These may include information about how the metrics relate to operation system processes, allowing an
implementation to estimate the site's contribution to the overall pressure.
</span>
</p>
<p>
The <dfn>adjusted pressure state</dfn> is a [=pressure state=] determined by an [=implementation-defined=]
Expand Down Expand Up @@ -1459,7 +1466,10 @@ <h3>Data Collection and Delivery</h3>
If |pressureSource| is a [=virtual pressure source=]:
<ol>
<li>
Set |state| to |sample|'s [=pressure source sample/data=].
Set |state| to the {{PressureState}} stored in |sample|'s [=pressure source sample/data=].
</li>
<li class="experimental">
Set |ownContributionEstimate| to the {{double?}} stored in |sample|'s [=pressure source sample/data=].
</li>
</ol>
</li>
Expand Down Expand Up @@ -2305,6 +2315,17 @@ <h4>
yes
</td>
</tr>
<tr class="experimental">
<td>
ownContributionEstimate
</td>
<td>
{{double}}
</td>
<td>
no
</td>
</tr>
</table>
<p>
The [=remote end steps=] given |session|, |URL variables| and |parameters| are:
Expand Down Expand Up @@ -2340,10 +2361,23 @@ <h4>
<li>
If |sample| is not of type {{PressureState}}, return [=error=] with [=error code|WebDriver error code=] [=invalid argument=].
</li>
<li class="experimental">
Let |ownContributionEstimate| be the result of invoking
<a data-cite="!WEBDRIVER2#dfn-getting-properties">get a property with default</a> with arguments "ownContributionEstimate" and null from |parameters|.
</li>
<li class="experimental">
If |ownContributionEstimate| is not of type {{double?}}, return [=error=] with [=error code|WebDriver error code=] [=invalid argument=].
</li>
<li>
Set |virtualPressureSource|'s [=pressure source/latest sample=] to a new
[=pressure source sample=] whose [=pressure source sample/data=] is
|sample| and [=pressure source sample/timestamp=] is the [=unsafe shared
<span class="experimental">
a tuple of |sample| and |ownContributionEstimate|,
</span>
<span class="non-experimental">
|sample|
</span>
and [=pressure source sample/timestamp=] is the [=unsafe shared
current time=].
</li>
<li>
Expand Down