W3C home > Mailing lists > Public > public-device-apis-log@w3.org > August 2018

Re: [sensors] Support scripting complex sets of mock sensor readings

From: Philip Jägenstedt via GitHub <sysbot+gh@w3.org>
Date: Mon, 27 Aug 2018 12:59:33 +0000
To: public-device-apis-log@w3.org
Message-ID: <issue_comment.created-416218119-1535374772-sysbot+gh@w3.org>
Since [`Sensor`](https://w3c.github.io/sensors/#the-sensor-interface) doesn't have a constructor it won't be possible to perfectly mock the API for a web developer, but I believe it will be possible to mock out sensors well enough to run any tests that are verifying the behavior of a web app as opposed to the browser itself.

Whenever possible I think it'd be good to serve the testing needs of web developers with WebDriver as well, but this is a case where doing so would add significant complexity. So, my inclination would be to not tackle that unless requests from real web developers attempting to use the existing API come in.

GitHub Notification of comment by foolip
Please view or discuss this issue at https://github.com/w3c/sensors/issues/371#issuecomment-416218119 using your GitHub account
Received on Monday, 27 August 2018 12:59:35 UTC

This archive was generated by hypermail 2.4.0 : Monday, 4 July 2022 12:47:55 UTC