File tree Expand file tree Collapse file tree 2 files changed +86
-19
lines changed Expand file tree Collapse file tree 2 files changed +86
-19
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,10 @@ urlPrefix: https://w3c.github.io/sensors/; spec: GENERIC-SENSOR
42
42
text: sensor reading
43
43
text: check sensor policy-controlled features; url: check-sensor-policy-controlled-features
44
44
text: sensor permission name; url: sensor-permission-names
45
+ text: automation
46
+ text: mock sensor type
47
+ text: MockSensorType
48
+ text: mock sensor reading values
45
49
</pre>
46
50
<pre class=biblio>
47
51
{
@@ -263,6 +267,24 @@ Abstract Operations {#abstract-operations}
263
267
1. Return |ambient_light_sensor|.
264
268
</div>
265
269
270
+ Automation {#automation}
271
+ ==========
272
+ This section extends the [=automation=] section defined in the Generic Sensor API [[GENERIC-SENSOR]]
273
+ to provide mocking information about the ambient light levels for the purposes of testing a user agent's
274
+ implementation of [=Ambient Light Sensor=] .
275
+
276
+
277
+ <h3 id="mock-ambient-light-sensor-type">Mock Sensor Type</h3>
278
+
279
+ The {{AmbientLightSensor}} class has an associated [=mock sensor type=] which is
280
+ <a for="MockSensorType" enum-value>"ambient-light"</a> , its [=mock sensor reading values=]
281
+ dictionary is defined as follow:
282
+
283
+ <pre class="idl">
284
+ dictionary AmbientLightReadingValues {
285
+ required double? illuminance;
286
+ };
287
+ </pre>
266
288
267
289
Use Cases and Requirements {#usecases-requirements}
268
290
=========
You can’t perform that action at this time.
0 commit comments