Skip to content

Commit bee4a2e

Browse files
author
Raphael Kubo da Costa
committed
Use "exists" rather than "is present" in dictionary checks.
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 #440, but there were some leftovers in the Automation section. Related to #444.
1 parent 9f43814 commit bee4a2e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.bs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1767,9 +1767,9 @@ Each [=mock sensor type=] has a [=mock sensor reading values=] dictionary:
17671767
1. Set |mock|'s [=mock sensor type=] to |type|.
17681768
1. Let |connected| be the |configuration|.{{MockSensorConfiguration/connected}}, set |mock|'s associated
17691769
[=connection flag=] to |connected|.
1770-
1. If |configuration|.{{MockSensorConfiguration/maxSamplingFrequency}} is [=present=], then:
1770+
1. If |configuration|.{{MockSensorConfiguration/maxSamplingFrequency}} [=map/exists=], then:
17711771
1. Set |mock|'s maximum supported sampling frequency to |configuration|.{{MockSensorConfiguration/maxSamplingFrequency}}.
1772-
1. If |configuration|.{{MockSensorConfiguration/minSamplingFrequency}} is [=present=], then:
1772+
1. If |configuration|.{{MockSensorConfiguration/minSamplingFrequency}} [=map/exists=], then:
17731773
1. Set |mock|'s minimum supported sampling frequency to |configuration|.{{MockSensorConfiguration/minSamplingFrequency}}.
17741774
1. Let |sensor_instance| be a |type| of {{Sensor}} object, set |sensor_instance|'s associated [=platform sensor=] to |mock|.
17751775
1. Return [=success=] with data `null`.

0 commit comments

Comments
 (0)