Skip to content

Commit ea4a2e3

Browse files
committed
Replace "Ambient Light Sensor" with "AmbientLightSensor class"
It's AmbientLightSensor class has an associated mock sensor type
1 parent 9183ae5 commit ea4a2e3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

index.bs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ implementation of [=Ambient Light Sensor=].
276276

277277
<h3 id="mock-ambient-light-sensor-type">Mock Sensor Type</h3>
278278

279-
The [=Ambient Light Sensor=] has an associated [=mock sensor type=] which is
279+
The {{AmbientLightSensor}} class has an associated [=mock sensor type=] which is
280280
<a for="MockSensorType" enum-value>"ambient-light"</a>, its [=mock sensor reading values=]
281281
dictionary is defined as follow:
282282

index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1221,7 +1221,7 @@
12211221
</style>
12221222
<meta content="Bikeshed version 9c6ae748322940994300e90a77c34437364b40a6" name="generator">
12231223
<link href="http://www.w3.org/TR/ambient-light/" rel="canonical">
1224-
<meta content="d6acf93bd2fec848d2b237d33f2132ce688cf111" name="document-revision">
1224+
<meta content="9183ae5cb1bf9ab5ad6069c56f1a5b0517b8dfba" name="document-revision">
12251225
<style>/* style-md-lists */
12261226

12271227
/* This is a weird hack for me not yet following the commonmark spec
@@ -1757,7 +1757,7 @@ <h2 class="heading settled" data-level="7" id="automation"><span class="secno">7
17571757
This section extends the <a data-link-type="dfn" href="https://w3c.github.io/sensors/#automation" id="ref-for-automation">automation</a> section defined in the Generic Sensor API <a data-link-type="biblio" href="#biblio-generic-sensor">[GENERIC-SENSOR]</a> to provide mocking information about the ambient light levels for the purposes of testing a user agent’s
17581758
implementation of <a data-link-type="dfn" href="#ambient-light-sensor" id="ref-for-ambient-light-sensor②">Ambient Light Sensor</a>.
17591759
<h3 class="heading settled" data-level="7.1" id="mock-ambient-light-sensor-type"><span class="secno">7.1. </span><span class="content">Mock Sensor Type</span><a class="self-link" href="#mock-ambient-light-sensor-type"></a></h3>
1760-
<p>The <a data-link-type="dfn" href="#ambient-light-sensor" id="ref-for-ambient-light-sensor③">Ambient Light Sensor</a> has an associated <a data-link-type="dfn" href="https://w3c.github.io/sensors/#mock-sensor-type" id="ref-for-mock-sensor-type">mock sensor type</a> which is <a class="idl-code" data-link-type="enum-value">"ambient-light"</a>, its <a data-link-type="dfn" href="https://w3c.github.io/sensors/#mock-sensor-reading-values" id="ref-for-mock-sensor-reading-values">mock sensor reading values</a> dictionary is defined as follow:</p>
1760+
<p>The <code class="idl"><a data-link-type="idl" href="#ambientlightsensor" id="ref-for-ambientlightsensor⑥">AmbientLightSensor</a></code> class has an associated <a data-link-type="dfn" href="https://w3c.github.io/sensors/#mock-sensor-type" id="ref-for-mock-sensor-type">mock sensor type</a> which is <a class="idl-code" data-link-type="enum-value">"ambient-light"</a>, its <a data-link-type="dfn" href="https://w3c.github.io/sensors/#mock-sensor-reading-values" id="ref-for-mock-sensor-reading-values">mock sensor reading values</a> dictionary is defined as follow:</p>
17611761
<pre class="idl highlight def"><c- b>dictionary</c-> <dfn class="idl-code" data-dfn-type="dictionary" data-export id="dictdef-ambientlightreadingvalues"><code><c- g>AmbientLightReadingValues</c-></code><a class="self-link" href="#dictdef-ambientlightreadingvalues"></a></dfn> {
17621762
<c- b>required</c-> <a class="idl-code" data-link-type="interface" href="https://heycam.github.io/webidl/#idl-double" id="ref-for-idl-double①"><c- b>double</c-></a>? <dfn class="idl-code" data-dfn-for="AmbientLightReadingValues" data-dfn-type="dict-member" data-export data-type="double? " id="dom-ambientlightreadingvalues-illuminance"><code><c- g>illuminance</c-></code><a class="self-link" href="#dom-ambientlightreadingvalues-illuminance"></a></dfn>;
17631763
};
@@ -2041,7 +2041,6 @@ <h2 class="no-num no-ref heading settled" id="idl-index"><span class="content">I
20412041
<ul>
20422042
<li><a href="#ref-for-ambient-light-sensor">4. Model</a> <a href="#ref-for-ambient-light-sensor①">(2)</a>
20432043
<li><a href="#ref-for-ambient-light-sensor②">7. Automation</a>
2044-
<li><a href="#ref-for-ambient-light-sensor③">7.1. Mock Sensor Type</a>
20452044
</ul>
20462045
</aside>
20472046
<aside class="dfn-panel" data-for="current-light-level">
@@ -2057,6 +2056,7 @@ <h2 class="no-num no-ref heading settled" id="idl-index"><span class="content">I
20572056
<li><a href="#ref-for-ambientlightsensor①">5.1. The AmbientLightSensor Interface</a>
20582057
<li><a href="#ref-for-ambientlightsensor②">5.1.1. The illuminance attribute</a>
20592058
<li><a href="#ref-for-ambientlightsensor③">6.1. Construct an ambient light sensor object</a> <a href="#ref-for-ambientlightsensor④">(2)</a> <a href="#ref-for-ambientlightsensor⑤">(3)</a>
2059+
<li><a href="#ref-for-ambientlightsensor⑥">7.1. Mock Sensor Type</a>
20602060
</ul>
20612061
</aside>
20622062
<aside class="dfn-panel" data-for="dom-ambientlightsensor-illuminance">

0 commit comments

Comments
 (0)