W3C home > Mailing lists > Public > public-device-apis@w3.org > February 2013

[battery] Test suite updated (was: Editorial changes in Battery Status API)

From: Anssi Kostiainen <anssi.kostiainen@nokia.com>
Date: Fri, 22 Feb 2013 16:45:02 +0200
Message-Id: <D27D25C7-4AC6-430C-8263-7547BC11026C@nokia.com>
To: "public-device-apis public-device-apis@w3.org" <public-device-apis@w3.org>, ext Mounir Lamouri <mounir@lamouri.fr>
Hi Mounir, All,

On 7.2.2013, at 18.05, ext Mounir Lamouri wrote:

> I just pushed to editorial changes in the Battery Status API specification:
> - the spec no longer marks the BatteryManager interface as
> [NoInterfaceObject] given that there was no reason to do so and the
> default behaviour is to not being marked as such;
> - the spec no longer defines NavigatorBattery. Instead, it extends
> Navigator with "partial interface Navigator".

I updated [1] the test suite [2] to match these changes to the spec.

battery-interface-idlharness.html [3] shows red on many tests now on Firefox. This seems not to be an issue specific to the implementation of this spec alone, rather it's more about idlharness.js' strict interpretation of the Web IDL spec. E.g. the DOM4 IDL tests [4] behave similarly on all major implementations I've tested.

Most of the failed tests are related to not throwing TypeError on getting properties on BatteryManager's prototype object. [NoInterfaceObject] was masking those issues earlier.


[1] https://dvcs.w3.org/hg/dap/rev/eb6f23519b41
[2] http://w3c-test.org/dap/battery/tests/submissions/anssik/
[3] http://w3c-test.org/dap/battery/tests/submissions/anssik/battery-interface-idlharness.html
[4] http://w3c-test.org/webapps/DOMCore/tests/approved/interfaces.html
Received on Friday, 22 February 2013 14:45:36 UTC

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 14:53:58 UTC