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

Rewrite Automation section after w3c/sensors#470 #87

Merged
merged 2 commits into from
Oct 20, 2023

Conversation

JuhaVainio
Copy link
Contributor

@JuhaVainio JuhaVainio commented Oct 20, 2023

The Automation section in the Generic Sensor API specification was rewritten and several terms and concepts have changed.

This commit adapts the Ambient Light Sensor spec to the changes:

  • Remove references to "mock sensor type", "mock sensor reading values" and the "MockSensorType" enum.
  • Define an entry in the per-type virtual sensor metadata map whose key is what used to be the "ambient-light" entry in MockSensorType and an appropriate virtual sensor metadata entry.

This is enough to integrate properly with the Generic Sensor spec and allow Ambient Light virtual sensors to be created and used.

Fixes #86.


Preview | Diff

The Automation section in the Generic Sensor API specification was rewritten and several terms and concepts have changed.

This commit adapts the Ambient Light Sensor spec to the changes:
* Remove references to "mock sensor type", "mock sensor reading values" and the "MockSensorType" enum.
* Define an entry in the per-type virtual sensor metadata map whose key is what used to be the "ambient-light" entry in MockSensorType and an appropriate virtual sensor metadata entry.

This is enough to integrate properly with the Generic Sensor spec and allow Ambient Light virtual sensors to be created and used.

Fixes w3c#86.
This section extends the [=automation=] section defined in the Generic Sensor API [[GENERIC-SENSOR]]
to provide mocking information about the ambient light levels for the purposes of testing a user agent's
implementation of [=Ambient Light Sensor=].
This section extends [[GENERIC-SENSOR#automation]] by providing [=Ambient Light Sensor=]-specific virtual sensor metadata.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add an extra empty line before this paragraph? Apparently Bikeshed requires that in order to wrap all the paragraphs around <p> tags, which is something I've just noticed and will also need to fix in the Gyroscope spec.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Empty line added in 7bbbbfa

Now algorithm paragraph also better shows as its own separate paragraph.

Copy link
Member

@rakuco rakuco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@rakuco
Copy link
Member

rakuco commented Oct 20, 2023

@anssiko can you merge this one?

@anssiko anssiko merged commit 2f5cf3f into w3c:main Oct 20, 2023
2 checks passed
github-actions bot added a commit that referenced this pull request Oct 20, 2023
…rences

SHA: 2f5cf3f
Reason: push, by anssiko

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Broken references in Ambient Light Sensor
3 participants