Closed Bug 814043 Opened 13 years ago Closed 10 years ago

[WebAPI] Device proximity sensor event 'min' and 'max' attribute values won't change

Categories

(Core :: DOM: Device Interfaces, defect)

All
Gonk (Firefox OS)
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: rwood, Unassigned)

Details

Attachments

(1 file)

The deviceproximity event 'min' and 'max' attributes always return '0' and '1' respectively. To reproduce: Setup the 'deviceproximity' event listener. Issue the "sensor set proximity 7:3:15" command to the emulator to change the emulated proximity. Then the "sensor get proximity" command which verifies the emulator's proximity is now "7:3:15". Wait for a 'deviceproximity' event, and notice the event.value has changed to '7' as expected, however the event.min is '0' (expected '3') and event.max is '1' (expected '15'). The attached test_proximity_change.js marionette emulator test will reproduce the issue.
unassigning things that I am not working on.
Assignee: doug.turner → nobody
I have a suspicion that this bug and the attached test case is invalid. In particular, the emulator command "sensor set proximity 7:3:15" probably isn't doing what you think it's doing. I can't find any documentation for the "sensor set" emulator command but I'm guessing it's just setting the first three elements for sensor values array (http://developer.android.com/reference/android/hardware/SensorEvent.html#values). The proximity sensor only uses the first element (http://developer.android.com/reference/android/hardware/Sensor.html#TYPE_PROXIMITY), the second and third elements are not the min and max.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: