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

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.

-Anssi

[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