Re: [battery] getBattery() test case feedback

On 28/08/2015 08:55, Zhang, Zhiqiang wrote:
>> I'm wondering whether the testharness.js built-in promise_*() are of any
>> help or whether we'd need to patch testharness.js to add support. I'd guess
>> testharness.js should be able to properly test functions that return promises.
>> jgraham who's the original author of testharness.js was on the Moz bug,
>> perhaps he knows.
>
> Hmm, seems this is a problem of idlharness.js rather than testharness.js,
> as the idlharness.js hasn't considered the Promise related tech.

I have a pending pull request on idlharness that I think would help  (at 
least a bit) with this:
https://github.com/w3c/testharness.js/pull/161

Dom

>>>> [1] https://bugzilla.mozilla.org/show_bug.cgi?id=1050749#c37
>>>> [2] http://w3c-test.org/battery-status/battery-interface.html

Received on Wednesday, 18 November 2015 11:13:29 UTC