Skip to content

Commit

Permalink
Use "exists" rather than "is present" in dictionary checks.
Browse files Browse the repository at this point in the history
whatwg/webidl#859 removed the "present" and "not present" terms; specs are
supposed to use Infra's "exists" for dictionaries instead.

We had already done this in w3c#440, but there were some leftovers in the
Automation section.

Related to w3c#444.
  • Loading branch information
rakuco committed Dec 7, 2022
1 parent 9f43814 commit bee4a2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1767,9 +1767,9 @@ Each [=mock sensor type=] has a [=mock sensor reading values=] dictionary:
1. Set |mock|'s [=mock sensor type=] to |type|.
1. Let |connected| be the |configuration|.{{MockSensorConfiguration/connected}}, set |mock|'s associated
[=connection flag=] to |connected|.
1. If |configuration|.{{MockSensorConfiguration/maxSamplingFrequency}} is [=present=], then:
1. If |configuration|.{{MockSensorConfiguration/maxSamplingFrequency}} [=map/exists=], then:
1. Set |mock|'s maximum supported sampling frequency to |configuration|.{{MockSensorConfiguration/maxSamplingFrequency}}.
1. If |configuration|.{{MockSensorConfiguration/minSamplingFrequency}} is [=present=], then:
1. If |configuration|.{{MockSensorConfiguration/minSamplingFrequency}} [=map/exists=], then:
1. Set |mock|'s minimum supported sampling frequency to |configuration|.{{MockSensorConfiguration/minSamplingFrequency}}.
1. Let |sensor_instance| be a |type| of {{Sensor}} object, set |sensor_instance|'s associated [=platform sensor=] to |mock|.
1. Return [=success=] with data `null`.
Expand Down

0 comments on commit bee4a2e

Please sign in to comment.