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

[battery] First stab at the test suite, how to test hardware interaction?

From: Anssi Kostiainen <anssi.kostiainen@nokia.com>
Date: Fri, 24 Aug 2012 15:29:03 +0300
Message-Id: <D273CAF3-7E92-4FD4-90B3-7D4C677C228F@nokia.com>
To: "public-device-apis@w3.org public-device-apis@w3.org" <public-device-apis@w3.org>
Hi All,

I started working on a test suite for the Battery Status API:

  http://w3c-test.org/dap/battery/tests/submissions/anssik/

The test suite is work in progress, as you probably notice.

Next, I'll need to figure out how to test hardware interaction. It will get interesting without real hardware to test on (or even with it, watching the battery deplete slow-ly).

For this reason, I've been looking at alternative ways how to tackle this. I noticed Mozilla guys were planning to work around this with an emulator (specifically QEMU). Does any of the Mozilla participants have more recent status than the following?

  https://groups.google.com/forum/?fromgroups=#!topic/mozilla.dev.webapi/2uJj4nGX-aA

  https://bugzilla.mozilla.org/show_bug.cgi?id=696295

Lastly, thanks Marcos and Robin for paving the cowpath with Proximity Events, Ambient Light and Vibration tests. Many of the existing test cases were re-usable.

Tracker, this is about ACTION-523.

-Anssi
Received on Friday, 24 August 2012 12:29:35 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 24 August 2012 12:29:35 GMT